def modify_host(id, **data): """ Modify (update) host. :param id: Host identification. :param data: Fields to modify. :return: None. """ 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)