get_client_manager failed

Bug #1687196 reported by yangfan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Backup/Restore and DR (Freezer)
New
Undecided
Unassigned

Bug Description

def get_client_manager(backup_args):
    if "osrc" in backup_args:
        options = osclients.OpenstackOpts.create_from_dict(
            parse_osrc(backup_args['osrc'])) #It will don't return a __dict__ type
    else:
        options = osclients.OpenstackOpts.create_from_env().get_opts_dicts()
    if backup_args['project_id']:
        options['project_name'] = None
        options['project_id'] = backup_args['project_id'] #In get_opts_dicts(),when it's keystone v2.
                                                           #This member will be delete.
    client_manager = osclients.OSClientManager(
        auth_url=options.pop('auth_url', None),
        auth_method=options.pop('auth_method', 'password'),
        dry_run=backup_args.get('dry_run', None),
        **options
    )
    return client_manager

jiaopengju (pj-jiao)
Changed in freezer:
assignee: nobody → jiaopengju (pj-jiao)
jiaopengju (pj-jiao)
Changed in freezer:
assignee: jiaopengju (pj-jiao) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.