There was a bug when changing the auth_port in JSON test files. 05/8005/1
authorasteroide <thomas.duval@orange.com>
Tue, 26 Jan 2016 11:02:19 +0000 (12:02 +0100)
committerasteroide <thomas.duval@orange.com>
Tue, 26 Jan 2016 11:02:19 +0000 (12:02 +0100)
Change-Id: I527551ef1d327ea0d017603e6ab6d2918491174a

moonclient/moonclient/shell.py

index ce2b010..79f9a24 100644 (file)
@@ -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",