@require_admin_context
@_retry_on_deadlock
def cluster_update(context, id, values):
 query = _cluster_query(context, id=id)
 result = query.update(values)
 if (not result):
  raise exception.ClusterNotFound(id=id)

@ require_admin_context @ _retry_on_deadlock def cluster_update ( context , id , values ) : query = _cluster_query ( context , id = id ) result = query . update ( values ) if ( not result ) : raise exception . ClusterNotFound ( id = id )
set the given properties on an cluster and update it .