diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-07-12 11:27:26 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-07-12 11:27:26 -0400 |
commit | 59608d8804019007ccadf95bcd1daa9f60b2ad09 (patch) | |
tree | c05e54b79d416a8005c9e3d8dbfa4814fb347f24 /cobbler | |
parent | 43d51a1a54ae2f73c15cc6a800eac3b1dd45b6d0 (diff) | |
download | cobbler-59608d8804019007ccadf95bcd1daa9f60b2ad09.tar.gz cobbler-59608d8804019007ccadf95bcd1daa9f60b2ad09.tar.xz cobbler-59608d8804019007ccadf95bcd1daa9f60b2ad09.zip |
Add netboot-enabled to CLI
Diffstat (limited to 'cobbler')
-rwxr-xr-x | cobbler/cobbler.py | 3 | ||||
-rw-r--r-- | cobbler/item_system.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py index 55edbc74..d77c9ed6 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 d6ddb021..caa6aced 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: |