From 4e04badd655f2fdd469f48228388bc4f88568ffd Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 15 Mar 2020 20:33:01 +0000 Subject: Added a client field in kwargs, used when pushing on_output. --- archinstall.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archinstall.py') diff --git a/archinstall.py b/archinstall.py index dfc2926f..62bbf245 100644 --- a/archinstall.py +++ b/archinstall.py @@ -209,6 +209,7 @@ class sys_command():#Thread): self.cmd = shlex.split(cmd) self.args = args self.kwargs = kwargs + if not 'client' in self.kwargs: self.kwargs['client'] = None self.callback = callback self.pid = None self.exit_code = None @@ -314,7 +315,7 @@ class sys_command():#Thread): log(self.cmd[0],'gave:', output.decode('UTF-8'), origin='spawn', level=4) if 'on_output' in self.kwargs: - self.kwargs['on_output'](self, output) + self.kwargs['on_output'](self.kwargs['client'], output) lower = output.lower() broke = False -- cgit v1.2.3-70-g09d2