diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-08-07 16:32:35 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-08-07 16:32:35 -0400 |
commit | 576637835427f08c9f178f8b504d3f8d6dbcb548 (patch) | |
tree | 559a9a0e1a17d4a4c11a5b2bd42b8aa99d997d43 /cobbler | |
parent | 61425bf8f4eaba8ff8b708135a67ce229df02fe2 (diff) | |
download | third_party-cobbler-576637835427f08c9f178f8b504d3f8d6dbcb548.tar.gz third_party-cobbler-576637835427f08c9f178f8b504d3f8d6dbcb548.tar.xz third_party-cobbler-576637835427f08c9f178f8b504d3f8d6dbcb548.zip |
Yell louder if directory is not present and using --available-as (if not, rsync will already error out)
Diffstat (limited to 'cobbler')
-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 |