summaryrefslogtreecommitdiffstats
path: root/scripts/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/index.py')
-rwxr-xr-xscripts/index.py4
1 files changed, 2 insertions, 2 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')