From: Tony Mack Date: Thu, 15 Mar 2012 19:29:02 +0000 (-0400) Subject: fix bug X-Git-Tag: sfa-2.1-4~32 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=afe04f79d6d7ee115f6295402a43583399154108;p=sfa.git fix bug --- diff --git a/sfa/openstack/euca_shell.py b/sfa/openstack/euca_shell.py index eaa70f75..9f1bc7d2 100644 --- a/sfa/openstack/euca_shell.py +++ b/sfa/openstack/euca_shell.py @@ -38,7 +38,9 @@ class EucaShell: elif url.find('http://') >= 0: use_ssl = False url = url.replace('http://', '') - (host, parts) = url.split(':') + parts = url.split(':') + host = parts[0] + port = None if len(parts) > 1: parts = parts.split('/') port = int(parts[0])