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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index 660c154..6c398c7 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -107,6 +107,11 @@ class Importer:
for valid_root in valid_roots:
if self.network_root.startswith(valid_root):
found_root = True
+ if self.network_root.startswith("nfs://"):
+ try:
+ (a,b,rest) = self.network_root.split(":",3)
+ except:
+ raise CX(_("Network root given to --available-as is missing a colon, please see the manpage example."))
if not found_root:
raise CX(_("Network root given to --available-as must be nfs://, ftp://, or http://"))