diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-16 20:03:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-16 20:03:22 +0100 |
| commit | 5f7f65cf5bb5544c930de117f2eababeb9136df3 (patch) | |
| tree | bae7c7b69a65cfd89dbedb53ea9ffdf3322b7a80 | |
| parent | bd17806bf12264f015a30c8575ff1c930c82bc70 (diff) | |
Fix some incorrect constructor calls.
| -rwxr-xr-x | cdist | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -490,7 +490,7 @@ class Target: class DockerTarget(Target): def __init__(self, *a, **k): - super(DockerTarget, self).__init__(*a, **k) + super().__init__(*a, **k) self.mounts = [] self.privileged = False @@ -548,7 +548,7 @@ class WindowsDockerTarget(DockerTarget): tool_path: path to 32- and 64-bit tools """ def __init__(self, bits, directory, environment_version): - super(WindowsDockerTarget, self).__init__('windows', directory) + super().__init__(directory=directory, platform='windows') self.bits = bits # This was used to differentiate "normal" Windows from XP, and is no longer important, # but old cscripts still look for it @@ -932,9 +932,9 @@ def target_factory(args): if s.startswith('windows-'): x = s.split('-') if platform.system() == "Windows": - target = WindowsNativeTarget(args.work) + target = WindowsNativeTarget(directory=args.work) elif len(x) == 2: - target = WindowsDockerTarget(int(x[1]), args.work, args.environment_version) + target = WindowsDockerTarget(bits=x[1], directory=args.work, environment_version=args.environment_version) else: raise Error("Bad Windows target name `%s'") elif any([s.startswith(prefix) for prefix in ('ubuntu-', 'debian-', 'centos-', 'fedora-', 'mageia-', 'rocky-')]): |
