Skip to content

Commit

Permalink
registration: fix contact overwrite checking
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Nov 20, 2024
1 parent e854ec3 commit c662f53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions registration/08.overwrite/scripts/check-register.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
print("contact still valid, expires {}!".format(expires))
sys.exit(2)
sys.exit(0)
# filter out deleted contacts
contacts = [c for c in contacts if c['Expires'] != "deleted"]
if len(contacts) != 1:
print("Unexpected number of contacts: {}!".format(len(contacts)))
sys.exit(3)
Expand Down

0 comments on commit c662f53

Please sign in to comment.