Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plugins/module_utils/netbox_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,9 @@ def _normalize_data(self, data):
if k == "mac_address":
data[k] = v.upper()

if k == "position" and v == 0:
data[k] = None

# We need to assign the correct type for the assigned object so the user doesn't have to worry about this.
# We determine it by whether or not they pass in a device or virtual_machine
if data.get("assigned_object"):
Expand Down