The ironicclient.openstack.common.apiclient.utils Module

ironicclient.openstack.common.apiclient.utils.find_resource(manager, name_or_id, **find_args)[source]

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)

Previous topic

The ironicclient.openstack.common.apiclient.fake_client Module

Next topic

The ironicclient.openstack.common.cliutils Module

This Page