def _update_state(context, node, instance, state):
 values = {'task_state': state}
 if (not instance):
  values['instance_uuid'] = None
  values['instance_name'] = None
 db.bm_node_update(context, node['id'], values)

def _update_state ( context , node , instance , state ) : values = { 'task_state' : state } if ( not instance ) : values [ 'instance_uuid' ] = None values [ 'instance_name' ] = None db . bm_node_update ( context , node [ 'id' ] , values )
update the node state in baremetal db if instance is not supplied .