def HostAPI(*args, **kwargs):
 compute_api_class_name = _get_compute_api_class_name()
 compute_api_class = importutils.import_class(compute_api_class_name)
 class_name = (compute_api_class.__module__ + '.HostAPI')
 return importutils.import_object(class_name, *args, **kwargs)

def HostAPI ( * args , ** kwargs ) : compute_api_class_name = _get_compute_api_class_name ( ) compute_api_class = importutils . import_class ( compute_api_class_name ) class_name = ( compute_api_class . __module__ + '.HostAPI' ) return importutils . import_object ( class_name , * args , ** kwargs )
returns the hostapi class from the same module as the configured compute api .