Skip to content

Commit

Permalink
fix: filtering retired hosts on VSC
Browse files Browse the repository at this point in the history
Change-Id: I1e29a3922f117e751aeb88be803892896bdc428d
  • Loading branch information
grafuls committed Jul 11, 2022
1 parent 78d9302 commit 20568e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quads/tools/verify_switchconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def verify(_cloud_name, _host_name, change=False):
_cloud_obj = Cloud.objects(name=_cloud_name).first()

if _host_name:
hosts = Host.objects(name=_host_name)
hosts = Host.objects(name=_host_name, retired=False)
else:
hosts = Host.objects(cloud=_cloud_obj)
hosts = Host.objects(cloud=_cloud_obj, retired=False)
first_host = hosts.first()

if not _cloud_obj:
Expand Down

0 comments on commit 20568e8

Please sign in to comment.