From afe04f79d6d7ee115f6295402a43583399154108 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 15 Mar 2012 15:29:02 -0400 Subject: [PATCH] fix bug --- sfa/openstack/euca_shell.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]) -- 2.47.0