summaryrefslogtreecommitdiffstats
path: root/scripts/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/index.py')
-rwxr-xr-xscripts/index.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/index.py b/scripts/index.py
index 26b86f36..5acfe09e 100755
--- a/scripts/index.py
+++ b/scripts/index.py
@@ -21,9 +21,9 @@ 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:25152" # was http://127.0.0.1/cobbler_api_rw"
+XMLRPC_SERVER = "http://127.0.0.1:25151" # FIXME: pull port from settings
#=======================================
@@ -109,8 +109,8 @@ def handler(req):
fd = open("/etc/cobbler/settings")
data = fd.read()
fd.close()
- ydata = yaml.load(data).next()
- remote_port = ydata.get("xmlrpc_rw_port", 25152)
+ ydata = yaml.load(data)
+ remote_port = ydata.get("xmlrpc_port", 25151)
mode = form.get('mode','index')