summaryrefslogtreecommitdiffstats
path: root/cobbler/action_import.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/action_import.py')
-rw-r--r--cobbler/action_import.py4
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