summaryrefslogtreecommitdiffstats
path: root/cobbler/action_enchant.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/action_enchant.py')
-rw-r--r--cobbler/action_enchant.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cobbler/action_enchant.py b/cobbler/action_enchant.py
index ce28f0c..03ad987 100644
--- a/cobbler/action_enchant.py
+++ b/cobbler/action_enchant.py
@@ -24,12 +24,14 @@ class Enchant:
def __init__(self,config,sysname,password=''):
"""
- Constructor. All arguments required.
+ Constructor. If password is None it should rely on SSH key auth.
"""
self.config = config
self.settings = self.config.settings()
self.username = "root"
self.sysname = sysname
+ if sysname is None:
+ raise cexception.CobblerException("enchant_failed","no system name specified")
self.profile = ''
self.password = password