def __init__(
        self,
        username,
        project_id,
        auth_url,
        region_name=None,
        password=None,
        os_auth_plugin=None,
        use_keystoneauth=False,
        **kwargs
    ):
        '''
        Set up nova credentials
        '''
        if all([use_keystoneauth, HAS_KEYSTONEAUTH]):
            self._new_init(username=username,
                           project_id=project_id,
                           auth_url=auth_url,
                           region_name=region_name,
                           password=password,
                           os_auth_plugin=os_auth_plugin,
                           **kwargs)
        else:
            self._old_init(username=username,
                           project_id=project_id,
                           auth_url=auth_url,
                           region_name=region_name,
                           password=password,
                           os_auth_plugin=os_auth_plugin,
                           **kwargs)
def __init__ ( self , username , project_id , auth_url , region_name = None , password = None , os_auth_plugin = None , use_keystoneauth = False , ** kwargs ) : if all ( [ use_keystoneauth , HAS_KEYSTONEAUTH ] ) : self . _new_init ( username = username , project_id = project_id , auth_url = auth_url , region_name = region_name , password = password , os_auth_plugin = os_auth_plugin , ** kwargs ) else : self . _old_init ( username = username , project_id = project_id , auth_url = auth_url , region_name = region_name , password = password , os_auth_plugin = os_auth_plugin , ** kwargs )
Set up nova credentials