summaryrefslogtreecommitdiffstats
path: root/cobbler/modules/cli_distro.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/modules/cli_distro.py')
-rw-r--r--cobbler/modules/cli_distro.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cobbler/modules/cli_distro.py b/cobbler/modules/cli_distro.py
index 0c1425b1..7105b403 100644
--- a/cobbler/modules/cli_distro.py
+++ b/cobbler/modules/cli_distro.py
@@ -28,7 +28,7 @@ mod_path="%s/cobbler" % plib
sys.path.insert(0, mod_path)
from utils import _
-import commands
+import cobbler.commands as commands
import cexceptions
@@ -61,6 +61,7 @@ class DistroFunction(commands.CobblerFunction):
p.add_option("--ksmeta", dest="ksmeta", help="ex: 'blippy=7'")
p.add_option("--mgmt-classes", dest="mgmt_classes", help="list of config management classes (for Puppet, etc)")
p.add_option("--redhat-management-key", dest="redhat_management_key", help="authentication token for RHN/Spacewalk/Satellite")
+ p.add_option("--redhat-management-server", dest="redhat_management_server", help="RHN/Spacewalk/Satellite server")
p.add_option("--template-files", dest="template_files", help="specify files to be generated from templates during a sync")
p.add_option("--name", dest="name", help="ex: 'RHEL-5-i386' (REQUIRED)")
@@ -118,6 +119,8 @@ class DistroFunction(commands.CobblerFunction):
obj.set_template_files(self.options.template_files,self.options.inplace)
if self.options.redhat_management_key is not None:
obj.set_redhat_management_key(self.options.redhat_management_key)
+ if self.options.redhat_management_server is not None:
+ obj.set_redhat_management_server(self.options.redhat_management_server)
return self.object_manipulator_finish(obj, self.api.distros, self.options)