diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-04-16 14:13:16 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-04-16 14:13:16 -0400 |
commit | 30f0d9f1f5e3ebe897c0786f52e2f404cd88b737 (patch) | |
tree | 1db817152e4cde5ead29acd906390afd57c204f6 /cobbler | |
parent | 6c371de03a0bbd9901223b707575e0804b9786a5 (diff) | |
download | third_party-cobbler-30f0d9f1f5e3ebe897c0786f52e2f404cd88b737.tar.gz third_party-cobbler-30f0d9f1f5e3ebe897c0786f52e2f404cd88b737.tar.xz third_party-cobbler-30f0d9f1f5e3ebe897c0786f52e2f404cd88b737.zip |
Fix if clause
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/action_import.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/action_import.py b/cobbler/action_import.py index 2e70c80..3e726a6 100644 --- a/cobbler/action_import.py +++ b/cobbler/action_import.py @@ -74,9 +74,9 @@ class Importer: raise CX(_("arch must be x86, x86_64, or ia64")) mpath = os.path.join(self.settings.webdir, "ks_mirror", self.mirror_name) + if os.path.exists(mpath) and self.arch is None: - if not found: - raise CX(_("Something already exists at this import location (%s). You must specify --arch to avoid potentially overwriting existing files.") % mpath) + raise CX(_("Something already exists at this import location (%s). You must specify --arch to avoid potentially overwriting existing files.") % mpath) if self.arch: # append the arch path to the name if the arch is not already |