def tenant_list(profile=None, **connection_args):
 kstone = auth(profile, **connection_args)
 ret = {}
 for tenant in getattr(kstone, _TENANTS, None).list():
  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_list ( profile = None , ** connection_args ) : kstone = auth ( profile , ** connection_args ) ret = { } for tenant in getattr ( kstone , _TENANTS , None ) . list ( ) : 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 list of available tenants cli example: .