(target)
return target
Adds extra information for policy enforcement to raw target object
Adds extra information for policy enforcement to raw target object
Adds extra information for policy enforcement to raw target object
def add_policy_attributes(target):
    """Adds extra information for policy enforcement to raw target object"""
    context = importutils.import_module('magnum.common.context')
    admin_context = context.make_admin_context()
    admin_osc = clients.OpenStackClients(admin_context)
    trustee_domain_id = admin_osc.keystone().trustee_domain_id
    target['trustee_domain_id'] = trustee_domain_id
    return target
def add_policy_attributes ( target ) : context = importutils . import_module ( 'magnum.common.context' ) admin_context = context . make_admin_context ( ) admin_osc = clients . OpenStackClients ( admin_context ) trustee_domain_id = admin_osc . keystone ( ) . trustee_domain_id target [ 'trustee_domain_id' ] = trustee_domain_id return target