diff options
-rw-r--r-- | cobbler/action_import.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cobbler/action_import.py b/cobbler/action_import.py index c6b5937..5789ae0 100644 --- a/cobbler/action_import.py +++ b/cobbler/action_import.py @@ -96,6 +96,9 @@ class Importer: # see that the root given is valid if self.network_root is not None: + if not os.path.exists(self.mirror): + raise CX(_("path does not exist: %s") % self.mirror) + if not self.network_root.endswith("/"): self.network_root = self.network_root + "/" self.path = self.mirror |