(cluster, show_deleted=False)
return context
Create a user context based on a cluster's stored Keystone trust.

    :param cluster: the cluster supplying the Keystone trust to use
    :param show_deleted: if True, will show deleted items when query db
Create a user context based on a cluster's stored Keystone trust.
Create a user context based on a cluster s stored Keystone trust .
def make_cluster_context(cluster, show_deleted=False):
    """Create a user context based on a cluster's stored Keystone trust.

    :param cluster: the cluster supplying the Keystone trust to use
    :param show_deleted: if True, will show deleted items when query db
    """
    context = RequestContext(user_name=cluster.trustee_username,
                             password=cluster.trustee_password,
                             trust_id=cluster.trust_id,
                             show_deleted=show_deleted,
                             user_domain_id=CONF.trust.trustee_domain_id,
                             user_domain_name=CONF.trust.trustee_domain_name)
    return context
def make_cluster_context ( cluster , show_deleted = False ) : context = RequestContext ( user_name = cluster . trustee_username , password = cluster . trustee_password , trust_id = cluster . trust_id , show_deleted = show_deleted , user_domain_id = CONF . trust . trustee_domain_id , user_domain_name = CONF . trust . trustee_domain_name ) return context