glanceclient.v1.apiclient.utils module¶
- glanceclient.v1.apiclient.utils.find_resource(manager, name_or_id, **find_args)¶
Look for resource in a given manager.
Used as a helper for the _find_* methods. Example:
def _find_hypervisor(cs, hypervisor): #Get a hypervisor by name or ID. return cliutils.find_resource(cs.hypervisors, hypervisor)