Skip to content

Commit

Permalink
fix: no updates when modifying the cod
Browse files Browse the repository at this point in the history
Fixes #240
  • Loading branch information
vaerh committed Jul 19, 2023
1 parent d40a405 commit 23d175b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routeros/mikrotik_crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 23d175b

Please sign in to comment.