]> git.ipfire.org Git - oddments/collecty.git/commitdiff
plugins: Fix Python syntax error in environment update
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Dec 2021 14:21:18 +0000 (14:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Dec 2021 14:21:18 +0000 (14:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/collecty/plugins/base.py

index 9518ea1e2ec83420bf9d5b93e3be49f71878d8ba..e8f8f308c0e2d6a842d3b112c1be1a8693e886cf 100644 (file)
@@ -55,7 +55,7 @@ class Environment(object):
 
                        # Apply the new one
                        if self.new_environment[k]:
-                               os.environ.update(self.new_environment[k])
+                               os.environ[k] = self.new_environment[k]
 
        def __exit__(self, type, value, traceback):
                # Roll back to the previous environment