Skip to content

Commit

Permalink
tests: fix device position to be a decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Peters authored and FlxPeters committed Sep 17, 2024
1 parent 20e7e25 commit 88b4fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox_prometheus_sd/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def build_device_full(name, ip_octet=1):
device.tags.add("Tag1")
device.tags.add("Tag 2")
device.save()
device.position = "1.0"
device.position = 1.0
Service.objects.create(device=device, name="ssh", protocol='tcp', ports=[22])
return device

Expand Down

0 comments on commit 88b4fd8

Please sign in to comment.