diff --git a/registration/08.overwrite/scripts/check-register.py b/registration/08.overwrite/scripts/check-register.py index 191e1f0..a78302b 100644 --- a/registration/08.overwrite/scripts/check-register.py +++ b/registration/08.overwrite/scripts/check-register.py @@ -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)