[Et-mgmt-commits-list] [SCM] cobbler branch, master now at v0.4.8-70-g59608d8

Michael DeHaan mdehaan at redhat.com
Thu Jul 12 15:25:39 UTC 2007


Hello,

This is an automated email from the git hooks/update script, it was
generated because a ref change was pushed to the repository.

Updating branch, master,
       via  59608d8804019007ccadf95bcd1daa9f60b2ad09 (commit)
      from  43d51a1a54ae2f73c15cc6a800eac3b1dd45b6d0 (commit)

- Log -----------------------------------------------------------------
commit 59608d8804019007ccadf95bcd1daa9f60b2ad09
Author: Michael DeHaan <mdehaan at mdehaan.rdu.redhat.com>
Date:   Thu Jul 12 11:27:26 2007 -0400

    Add netboot-enabled to CLI
-----------------------------------------------------------------------

Diffstat:
 cobbler/cobbler.py     |    3 ++-
 cobbler/item_system.py |    2 +-
 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:

hooks/update
---
Git Source Code Management System
hooks/update refs/heads/master \
  43d51a1a54ae2f73c15cc6a800eac3b1dd45b6d0 \
  59608d8804019007ccadf95bcd1daa9f60b2ad09




More information about the Et-mgmt-commits-list mailing list