def ensure_tenant_absent(keystone, tenant, check_mode):
 if (not tenant_exists(keystone, tenant)):
  return False
 if check_mode:
  return True

def ensure_tenant_absent ( keystone , tenant , check_mode ) : if ( not tenant_exists ( keystone , tenant ) ) : return False if check_mode : return True
ensure that a tenant does not exist return true if the tenant was removed .