def modify_hosts(host_filter_data, update_data):
 rpc_utils.check_modify_host(update_data)
 hosts = models.Host.query_objects(host_filter_data)
 for host in hosts:
  host.update_object(update_data)

def modify_hosts ( host_filter_data , update_data ) : rpc_utils . check_modify_host ( update_data ) hosts = models . Host . query_objects ( host_filter_data ) for host in hosts : host . update_object ( update_data )
modify multiple hosts .