diff options
Diffstat (limited to 'scripts/cobbler-ext-nodes')
-rw-r--r-- | scripts/cobbler-ext-nodes | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cobbler-ext-nodes b/scripts/cobbler-ext-nodes index f9510c0d..919bc948 100644 --- a/scripts/cobbler-ext-nodes +++ b/scripts/cobbler-ext-nodes @@ -1,6 +1,6 @@ #!/usr/bin/python -from cobbler import yaml as yaml +import yaml # PyYAML version import urlgrabber import sys @@ -15,7 +15,7 @@ if __name__ == "__main__": conf = open("/etc/cobbler/settings") data = conf.read() conf.close() - server = yaml.load(data).next()["server"] + server = yaml.load(data)["server"] url = "http://%s/cblr/svc/op/puppet/hostname/%s" % (server, hostname) print urlgrabber.urlread(url) |