summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-03-12 15:33:35 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-03-12 15:33:35 -0400
commit73857cbd67b62fda81398ba95c81df3abb59f1b1 (patch)
tree8dfa9891ac0024757258e15597347b6508d168cc /cobbler/action_sync.py
parentcb518895c64bfb690a1f3df0aaeeb147209493c3 (diff)
downloadthird_party-cobbler-73857cbd67b62fda81398ba95c81df3abb59f1b1.tar.gz
third_party-cobbler-73857cbd67b62fda81398ba95c81df3abb59f1b1.tar.xz
third_party-cobbler-73857cbd67b62fda81398ba95c81df3abb59f1b1.zip
Adding patch to send hostname
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 139066e..d6ea178 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -163,6 +163,8 @@ class BootSync:
# the label the entry after the hostname if possible
if host is not None and host != "":
systxt = "\nhost %s {\n" % host
+ if self.settings.isc_set_host_name:
+ systxt = systxt + " option host-name = %s;\n" % host
else:
systxt = "\nhost generic%d {\n" % counter