From 23d175bf6ea2361330900628696f9c31641aebdb Mon Sep 17 00:00:00 2001 From: Vaerh Date: Wed, 19 Jul 2023 23:22:03 +0300 Subject: [PATCH] fix: no updates when modifying the cod Fixes #240 --- routeros/mikrotik_crud.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routeros/mikrotik_crud.go b/routeros/mikrotik_crud.go index cc88f91b..801e7a2b 100644 --- a/routeros/mikrotik_crud.go +++ b/routeros/mikrotik_crud.go @@ -85,6 +85,8 @@ func UpdateItem(id *ItemId, resourcePath string, item MikrotikItem, c Client) (M if c.GetTransport() == TransportREST { // /interface/vlan/*39 resourcePath += "/" + id.Value + } else { + item[".id"] = id.Value } res := MikrotikItem{}