Skip to content

Commit

Permalink
Update utils.py force rack_u_position to string value.
Browse files Browse the repository at this point in the history
  • Loading branch information
ekrichbaum authored Aug 16, 2024
1 parent ba9ea5b commit 6957c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox_prometheus_sd/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,4 @@ def extract_service_ports(obj, labels: LabelDict):
def extract_rack_u_poistion(obj, labels: LabelDict):
"""Extract rack U poistion"""
if hasattr(obj, "position") and obj.position:
labels["rack_u_position"] = obj.position
labels["rack_u_position"] = str(obj.position)

0 comments on commit 6957c8a

Please sign in to comment.