def InstanceActionAPI(*args, **kwargs):
 importutils = nova.openstack.common.importutils
 compute_api_class_name = oslo.config.cfg.CONF.compute_api_class
 compute_api_class = importutils.import_class(compute_api_class_name)
 class_name = (compute_api_class.__module__ + '.InstanceActionAPI')
 return importutils.import_object(class_name, *args, **kwargs)

def InstanceActionAPI ( * args , ** kwargs ) : importutils = nova . openstack . common . importutils compute_api_class_name = oslo . config . cfg . CONF . compute_api_class compute_api_class = importutils . import_class ( compute_api_class_name ) class_name = ( compute_api_class . __module__ + '.InstanceActionAPI' ) return importutils . import_object ( class_name , * args , ** kwargs )
returns the instanceactionapi class from the same module as the configured compute api .