Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
cobbler.15445
fix-koan-port-guessing.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-koan-port-guessing.dif of Package cobbler.15445
Index: cobbler-2.4.2/koan/utils.py =================================================================== --- cobbler-2.4.2.orig/koan/utils.py +++ cobbler-2.4.2/koan/utils.py @@ -450,15 +450,20 @@ def connect_to_server(server=None,port=N if server == "": raise InfoException("--server must be specified") - if port is None: - port = 80 - + try_urls = [] + if port is None: + try_urls = [ + "https://%s:443/cobbler_api" % (server), + "http://%s:80/cobbler_api" % (server), + ] + else: + try_urls = [ + "https://%s:%s/cobbler_api" % (server,port), + "http://%s:%s/cobbler_api" % (server,port), + ] + connect_ok = 0 - try_urls = [ - "https://%s:%s/cobbler_api" % (server,port), - "http://%s:%s/cobbler_api" % (server,port), - ] for url in try_urls: print "- looking for Cobbler at %s" % url server = __try_connect(url)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor