summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcobbler/cobbler.py3
-rw-r--r--cobbler/item_system.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py
index 55edbc7..d77c9ed 100755
--- a/cobbler/cobbler.py
+++ b/cobbler/cobbler.py
@@ -501,7 +501,8 @@ class BootCLI:
'--mac-address' : lambda(a) : sys.set_mac_address(a),
'--mac' : lambda(a) : sys.set_mac_address(a), # alias
'--kickstart' : lambda(a) : sys.set_kickstart(a),
- '--kick-start' : lambda(a) : sys.set_kickstart(a)
+ '--kick-start' : lambda(a) : sys.set_kickstart(a),
+ '--netboot-enabled' : lambda(a) : sys.set_netboot_enabled(a)
}
def on_ok():
self.api.systems().add(sys, with_copy=self.api.sync_flag)
diff --git a/cobbler/item_system.py b/cobbler/item_system.py
index d6ddb02..caa6ace 100644
--- a/cobbler/item_system.py
+++ b/cobbler/item_system.py
@@ -200,7 +200,7 @@ class System(item.Item):
Use of this option does not affect the ability to use PXE menus. If an admin has machines
set up to PXE only after local boot fails, this option isn't even relevant.
"""
- if netboot_enabled in [ True, "True", "true", 1, "on", "yes", "y", "ON", "YES", "Y" ]:
+ if netboot_enabled in [ True, "True", "true", 1, "1", "on", "yes", "y", "ON", "YES", "Y" ]:
# this is a bit lame, though we don't know what the user will enter YAML wise...
self.netboot_enabled = 1
else: