From c5b44a6935b7b4fe3762202f3d2ae746e7ad24b3 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 29 Nov 2019 17:23:04 +0100 Subject: Fixing issues with the spawning of containers. --- archinstall.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/archinstall.py b/archinstall.py index 74e22898..f449c133 100644 --- a/archinstall.py +++ b/archinstall.py @@ -318,12 +318,13 @@ class sys_command():#Thread): if 'events' in self.kwargs: for trigger in list(self.kwargs['events']): if type(trigger) != bytes: - key = self.kwargs['events'][trigger] + original = self.kwargs['events'][trigger] del(self.kwargs['events'][trigger]) - trigger = bytes(key, 'UTF-8') - self.kwargs['events'][trigger] = self.kwargs['events'][key] - if type(self.kwargs['events'][key]) != bytes: - self.kwargs['events'][key] = bytes(self.kwargs['events'][key], 'UTF-8') + + trigger = bytes(original, 'UTF-8') + self.kwargs['events'][trigger] = self.kwargs['events'][original] + if type(self.kwargs['events'][trigger]) != bytes: + self.kwargs['events'][trigger] = bytes(self.kwargs['events'][trigger], 'UTF-8') if trigger.lower() in self.trace_log[last_trigger_pos:].lower(): trigger_pos = self.trace_log[last_trigger_pos:].lower().find(trigger.lower()) -- cgit v1.2.3-70-g09d2