From 30f0d9f1f5e3ebe897c0786f52e2f404cd88b737 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 16 Apr 2008 14:13:16 -0400 Subject: Fix if clause --- cobbler/action_import.py | 4 ++-- 1 file 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 -- cgit