summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-08-08 10:11:59 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-08-08 10:11:59 -0400
commit1696ff083cf831f360cd1709a1e0bc4033fd895d (patch)
treee2be439faef367c040a3243e234252ad60587aaa /cobbler
parent4f9df1448b0a61a2d431e5de35ff03f9df48b9f7 (diff)
parent576637835427f08c9f178f8b504d3f8d6dbcb548 (diff)
downloadthird_party-cobbler-1696ff083cf831f360cd1709a1e0bc4033fd895d.tar.gz
third_party-cobbler-1696ff083cf831f360cd1709a1e0bc4033fd895d.tar.xz
third_party-cobbler-1696ff083cf831f360cd1709a1e0bc4033fd895d.zip
Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/cobbler
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/action_import.py3
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