def tenant_get(tenant_id=None, name=None, profile=None, **connection_args):
 kstone = auth(profile, **connection_args)
 ret = {}
 if name:
  for tenant in getattr(kstone, _TENANTS, None).list():
   if (tenant.name == name):
    tenant_id = tenant.id
    break
 if (not tenant_id):
  return {'Error': 'Unable to resolve tenant id'}
 tenant = getattr(kstone, _TENANTS, None).get(tenant_id)
 ret[tenant.name] = dict(((value, getattr(tenant, value)) for value in dir(tenant) if ((not value.startswith('_')) and isinstance(getattr(tenant, value), (six.text_type, dict, bool, str)))))
 return ret

def tenant_get ( tenant_id = None , name = None , profile = None , ** connection_args ) : kstone = auth ( profile , ** connection_args ) ret = { } if name : for tenant in getattr ( kstone , _TENANTS , None ) . list ( ) : if ( tenant . name == name ) : tenant_id = tenant . id break if ( not tenant_id ) : return { 'Error' : 'Unable to resolve tenant id' } tenant = getattr ( kstone , _TENANTS , None ) . get ( tenant_id ) ret [ tenant . name ] = dict ( ( ( value , getattr ( tenant , value ) ) for value in dir ( tenant ) if ( ( not value . startswith ( '_' ) ) and isinstance ( getattr ( tenant , value ) , ( six . text_type , dict , bool , str ) ) ) ) ) return ret
return a specific tenants cli examples: .