summaryrefslogtreecommitdiffstats
path: root/cobbler/item_system.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-07-21 16:20:29 -0400
committerJim Meyering <jim@meyering.net>2006-07-21 16:20:29 -0400
commit99f6bd9d5a8b8b5f18a2c907d10602cf628c9b6f (patch)
tree9d7d8bfba3016992903201cbbcedb844800c939f /cobbler/item_system.py
parentc5f1939527a355e6e1b265e48e4399ab0b2dfe69 (diff)
downloadthird_party-cobbler-99f6bd9d5a8b8b5f18a2c907d10602cf628c9b6f.tar.gz
third_party-cobbler-99f6bd9d5a8b8b5f18a2c907d10602cf628c9b6f.tar.xz
third_party-cobbler-99f6bd9d5a8b8b5f18a2c907d10602cf628c9b6f.zip
Add support for PXE default directory (cobbler system add --name=default ...) which would previously try to resolve into an IP. We don't want that.
Diffstat (limited to 'cobbler/item_system.py')
-rw-r--r--cobbler/item_system.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cobbler/item_system.py b/cobbler/item_system.py
index 68ba156..280d22d 100644
--- a/cobbler/item_system.py
+++ b/cobbler/item_system.py
@@ -41,6 +41,9 @@ class System(item.Item):
any legal ipv4 address, or any legal mac address. ipv6 is not supported yet but _should_ be.
See utils.py
"""
+ if name == "default":
+ self.name="default"
+ return True
new_name = utils.find_system_identifier(name)
if not new_name:
raise cexceptions.CobblerException("bad_sys_name")