From 2724e6409534a948b5a2c212ae0a7192326c1b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Fri, 19 Apr 2024 23:52:23 +0200 Subject: Run 2to3 on the entire project --- src/lib/Bcfg2/Server/Lint/Bundler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/Bcfg2/Server/Lint/Bundler.py') diff --git a/src/lib/Bcfg2/Server/Lint/Bundler.py b/src/lib/Bcfg2/Server/Lint/Bundler.py index 7b024229b..7bf6f0baa 100644 --- a/src/lib/Bcfg2/Server/Lint/Bundler.py +++ b/src/lib/Bcfg2/Server/Lint/Bundler.py @@ -11,7 +11,7 @@ class Bundler(ServerPlugin): def Run(self): self.missing_bundles() - for bundle in self.core.plugins['Bundler'].entries.values(): + for bundle in list(self.core.plugins['Bundler'].entries.values()): if self.HandlesFile(bundle.name): self.bundle_names(bundle) @@ -32,11 +32,11 @@ class Bundler(ServerPlugin): ref_bundles = set([b.get("name") for b in groupdata.findall("//Bundle")]) - for bundle in self.core.plugins['Bundler'].bundles.values(): + for bundle in list(self.core.plugins['Bundler'].bundles.values()): ref_bundles |= set([rb.get("name") for rb in bundle.xdata.findall(".//RequiredBundle")]) - allbundles = self.core.plugins['Bundler'].bundles.keys() + allbundles = list(self.core.plugins['Bundler'].bundles.keys()) for bundle in ref_bundles: if bundle not in allbundles: self.LintError("bundle-not-found", -- cgit v1.2.3-1-g7c22