def tenant_exists(keystone, tenant):
 return (tenant in [x.name for x in keystone.tenants.list()])

def tenant_exists ( keystone , tenant ) : return ( tenant in [ x . name for x in keystone . tenants . list ( ) ] )
return true if tenant already exists .