Revision ddd240ff ci/utils.py

b/ci/utils.py
260 260
    def _get_server_ip_and_port(self, server):
261 261
        """Compute server's IPv4 and ssh port number"""
262 262
        self.logger.info("Get server connection details..")
263
        # XXX: check if this IP is from public network
264 263
        server_ip = server['attachments'][0]['ipv4']
265
        if self.config.get('Deployment', 'deploy_on_io') == "True":
264
        if ".okeanos.io" in self.cyclades_client.base_url:
266 265
            tmp1 = int(server_ip.split(".")[2])
267 266
            tmp2 = int(server_ip.split(".")[3])
268 267
            server_ip = "gate.okeanos.io"

Also available in: Unified diff