Justin Sherrill wrote:
> ---
>  koan/app.py |   13 ++++++++++---
>  1 files changed, 10 insertions(+), 3 deletions(-)
>
> diff --git a/koan/app.py b/koan/app.py
> index f5f982f..e2b8e12 100755
> --- a/koan/app.py
> +++ b/koan/app.py
> @@ -297,9 +297,16 @@ class Koan:
>                      if uses_avahi:
>                          print "- connecting to: %s" % server
>                      try:
> -                        # first try port 80
> -                        self.xmlrpc_server = ServerProxy(url)
> -                        self.xmlrpc_server.get_profiles()
> +                        try:
> +                            #first try port 443
> +                            url = "https://%s:443/cobbler_api"; % (server)
> +                            self.xmlrpc_server = ServerProxy(url)
> +                            self.xmlrpc_server.get_profiles()
> +                        except:
> +                            #then try port 80
> +                            url = "http://%s:80/cobbler_api"; % (server)
> +                            self.xmlrpc_server = ServerProxy(url)
> +                            self.xmlrpc_server.get_profiles()
>                      except:
>                          # now try specified port in case Apache proxying
>                          # is not configured
>   

I've applied this and added one additional port combination to try -- 
https encrypted ports not going through an Apache proxy URL.
That's unlikely but I wanted to cover all possible cases.

This is now merged in with devel.

Thanks!

--Michael

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to