summaryrefslogtreecommitdiffstats
path: root/cobbler/item_system.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-05-30 18:03:00 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-05-30 18:03:00 -0400
commitd38f037fc0752843e34d03590a16e071ae4dc701 (patch)
treeed1a1391e09b14425b04fe7d198209761ce13d42 /cobbler/item_system.py
parent4355d491402ce90abb532daa370ecca8546b6c49 (diff)
downloadthird_party-cobbler-d38f037fc0752843e34d03590a16e071ae4dc701.tar.gz
third_party-cobbler-d38f037fc0752843e34d03590a16e071ae4dc701.tar.xz
third_party-cobbler-d38f037fc0752843e34d03590a16e071ae4dc701.zip
Serialize the value given for --mac.
Diffstat (limited to 'cobbler/item_system.py')
-rw-r--r--cobbler/item_system.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cobbler/item_system.py b/cobbler/item_system.py
index c3bd86b..a745ba9 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):