diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2009-03-02 12:12:06 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2009-03-02 12:20:08 -0500 |
commit | f2f9ab24d5cf5f192c8d131f83675c12a6566c7b (patch) | |
tree | bfc1e2b32e4f3395499cd2a6467587d4a5462296 /scripts | |
parent | 6a90bbead0b856e8b854b9e9842251835eaa17c8 (diff) | |
download | cobbler-f2f9ab24d5cf5f192c8d131f83675c12a6566c7b.tar.gz cobbler-f2f9ab24d5cf5f192c8d131f83675c12a6566c7b.tar.xz cobbler-f2f9ab24d5cf5f192c8d131f83675c12a6566c7b.zip |
Remove last references to old YAML parser.
Conflicts:
CHANGELOG
scripts/index.py
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/index.py | 4 | ||||
-rwxr-xr-x | scripts/services.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/index.py b/scripts/index.py index bf3b17c9..5acfe09e 100755 --- a/scripts/index.py +++ b/scripts/index.py @@ -21,7 +21,7 @@ import cgi import os from cobbler.webui import CobblerWeb import cobbler.utils as utils -import cobbler.yaml as yaml +import yaml # PyYAML XMLRPC_SERVER = "http://127.0.0.1:25151" # FIXME: pull port from settings @@ -109,7 +109,7 @@ def handler(req): fd = open("/etc/cobbler/settings") data = fd.read() fd.close() - ydata = yaml.load(data).next() + ydata = yaml.load(data) remote_port = ydata.get("xmlrpc_port", 25151) mode = form.get('mode','index') diff --git a/scripts/services.py b/scripts/services.py index 051d5b65..36d00c01 100755 --- a/scripts/services.py +++ b/scripts/services.py @@ -20,7 +20,7 @@ import xmlrpclib import cgi import os from cobbler.services import CobblerSvc -import cobbler.yaml as yaml +import yaml # PyYAML version import cobbler.utils as utils #======================================= @@ -72,7 +72,7 @@ def handler(req): fd = open("/etc/cobbler/settings") data = fd.read() fd.close() - ydata = yaml.load(data).next() + ydata = yaml.load(data) remote_port = ydata.get("xmlrpc_port",25151) # instantiate a CobblerWeb object |