From 576637835427f08c9f178f8b504d3f8d6dbcb548 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 7 Aug 2007 16:32:35 -0400 Subject: Yell louder if directory is not present and using --available-as (if not, rsync will already error out) --- cobbler/action_import.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit