summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.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/action_sync.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/action_sync.py')
-rw-r--r--cobbler/action_sync.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 678bbc1..707fb3f 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -280,6 +280,8 @@ class BootSync:
is either a system name, an IP, or the MAC, so figure it out, resolve
the host if needed, and return the pxelinux directory name.
"""
+ if name_input == "default":
+ return "default"
name = utils.find_system_identifier(name_input)
if utils.is_ip(name):
return utils.get_host_ip(name)