diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-05-30 18:03:00 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-05-30 18:03:00 -0400 |
commit | d38f037fc0752843e34d03590a16e071ae4dc701 (patch) | |
tree | ed1a1391e09b14425b04fe7d198209761ce13d42 /cobbler/item_system.py | |
parent | 4355d491402ce90abb532daa370ecca8546b6c49 (diff) | |
download | cobbler-d38f037fc0752843e34d03590a16e071ae4dc701.tar.gz cobbler-d38f037fc0752843e34d03590a16e071ae4dc701.tar.xz cobbler-d38f037fc0752843e34d03590a16e071ae4dc701.zip |
Serialize the value given for --mac.
Diffstat (limited to 'cobbler/item_system.py')
-rw-r--r-- | cobbler/item_system.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cobbler/item_system.py b/cobbler/item_system.py index c3bd86b7..a745ba96 100644 --- a/cobbler/item_system.py +++ b/cobbler/item_system.py @@ -111,7 +111,7 @@ class System(item.Item): Get the IP address, which may be implicit in the object name or explict with --ip-address. Use the explicit location first. """ - if self.ip_address != "": # misnomer + if self.ip_address != "": return self.ip_address elif utils.is_ip(self.name): return self.name @@ -202,9 +202,10 @@ class System(item.Item): 'profile' : self.profile, 'kernel_options' : self.kernel_options, 'ks_meta' : self.ks_meta, - 'ip_address' : self.ip_address, + 'ip_address' : self.ip_address, 'netboot_enabled' : self.netboot_enabled, 'hostname' : self.hostname, + 'mac_address' : self.mac_address } def printable(self): |