Skip to content

Commit

Permalink
fix: cloud expiration on wiki
Browse files Browse the repository at this point in the history
fix: vlan ownership on wiki

closes: #493
Change-Id: I7e183846e516c44e3b3b25844557849713c61314
  • Loading branch information
grafuls committed Jun 18, 2024
1 parent 9327137 commit cfac27b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/quads/tools/create_input_assignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def add_row(host):
short_host = host.name.split(".")[0]

_schedule_obj = None
_schedules = quads.get_current_schedules({"host": host})
_schedules = quads.get_current_schedules({"host": host.name})
if _schedules:
_schedule_obj = _schedules[0]

Expand Down
2 changes: 1 addition & 1 deletion src/quads/tools/regenerate_vlans_wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def render_vlans(markdown):
lines = []
vlans = quads.get_vlans()
for vlan in vlans:
assignment_obj = quads.filter_assignments({"vlan_id": vlan.vlan_id})
assignment_obj = quads.filter_assignments({"active": True, "vlan.vlan_id": vlan.vlan_id})
assignment_obj = assignment_obj[0] if assignment_obj else None
cloud_current_count = 0
cloud_obj = None
Expand Down

0 comments on commit cfac27b

Please sign in to comment.