Skip to content

Commit

Permalink
Fix(cv_deploy): Ensure lossrate for cv_pathfinder metadata is a float (
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausHolbechArista authored Jan 4, 2025
1 parent 3accded commit 7904f44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def update_general_metadata(metadata: dict, studio_inputs: dict, studio_schema:
constraints: dict = avt.setdefault("constraints", {})
constraints.setdefault("latency", 4294967295)
constraints.setdefault("jitter", 4294967295)
constraints.setdefault("lossrate", 99.0)
constraints["lossrate"] = float(constraints.get("lossrate", 99.0))
if is_avt_hop_count_supported(studio_schema):
constraints["hopCount"] = constraints.pop("hop_count", "")
elif constraints.pop("hop_count", ""):
Expand Down

0 comments on commit 7904f44

Please sign in to comment.