From: asteroide Date: Tue, 26 Jan 2016 11:02:19 +0000 (+0100) Subject: There was a bug when changing the auth_port in JSON test files. X-Git-Tag: colorado.1.0~63 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=9c798c092dd42326f2c2d526ef645f768c3e08d8;p=moon.git There was a bug when changing the auth_port in JSON test files. Change-Id: I527551ef1d327ea0d017603e6ab6d2918491174a --- diff --git a/moonclient/moonclient/shell.py b/moonclient/moonclient/shell.py index ce2b0102..79f9a244 100644 --- a/moonclient/moonclient/shell.py +++ b/moonclient/moonclient/shell.py @@ -141,7 +141,7 @@ class MoonClient(App): # TODO: we must manage authentication and requests with secure protocol (ie. HTTPS) if not port: port = self.port - conn = httplib.HTTPConnection(self.host, port) + conn = httplib.HTTPConnection(self.host, int(port)) self.log.debug("Host: {}:{}".format(self.host, self.port)) headers = { "Content-type": "application/x-www-form-urlencoded",