Esempio n. 1
0
 def __init__(self, admin_node_ip, **kwargs):
     url = "http://{0}:8000".format(admin_node_ip)
     logger.info('Initiate Nailgun client with url %s', url)
     self.keystone_url = "http://{0}:5000/v2.0".format(admin_node_ip)
     self._client = HTTPClient(url=url, keystone_url=self.keystone_url,
                               credentials=KEYSTONE_CREDS,
                               **kwargs)
     super(NailgunClient, self).__init__()
Esempio n. 2
0
 def __init__(self, admin_node_ip, user=None, password=None):
     url = "http://{0}:8000".format(admin_node_ip)
     logger.info('Initiate Nailgun client with url %s', url)
     self.client = HTTPClient(url=url, user=user, password=password)
     super(NailgunClient, self).__init__()