def modify_host(id, **data):
 rpc_utils.check_modify_host(data)
 host = models.Host.smart_get(id)
 rpc_utils.check_modify_host_locking(host, data)
 host.update_object(data)

def modify_host ( id , ** data ) : rpc_utils . check_modify_host ( data ) host = models . Host . smart_get ( id ) rpc_utils . check_modify_host_locking ( host , data ) host . update_object ( data )
modify host .