示例#1
0
文件: helpers.py 项目: radez/thermal
def get_heat_client():
    """
    Returns a new client object to a heat server
    specified by the --host and --port options
    supplied to the CLI
    """
    options = {'host':'localhost',
	       'port':8000,
	       'username':'******',
	       'password':'******',
	       'tenant':'admin',
	       'auth_url':'http://127.0.0.1:5000/v2.0/',
	       'auth_strategy':None,
	       'auth_token':'d57638a3cced1564cc0d',
	       'region':None,
	       'insecure':False,
              }
    return heat_client.get_client(**options)
示例#2
0
def get_client():
    """
    Returns a new client object to a heat server
    specified by the --host and --port options
    supplied to the CLI
    """
    options = {
        'host': 'localhost',
        'port': 8000,
        'username': '******',
        'password': '******',
        'tenant': 'admin',
        'auth_url': 'http://127.0.0.1:5000/v2.0/',
        'auth_strategy': None,
        'auth_token': 'd57638a3cced1564cc0d',
        'region': None,
        'insecure': False,
    }
    return heat_client.get_client(**options)
示例#3
0
 def _create_heat_client(self):
     return heat_client.get_client('0.0.0.0', 8000,
         self.creds['username'], self.creds['password'],
         self.creds['tenant'], self.creds['auth_url'],
         self.creds['strategy'], None, None, False)
示例#4
0
文件: util.py 项目: vladikr/heat
 def _create_heat_client(self):
     return heat_client.get_client('0.0.0.0', 8000,
         self.creds['username'], self.creds['password'],
         self.creds['tenant'], self.creds['auth_url'],
         self.creds['strategy'], None, None, False)