diff --git a/lib/ansible/modules/web_infrastructure/letsencrypt.py b/lib/ansible/modules/web_infrastructure/letsencrypt.py index e117836742..e2e4285a0c 100644 --- a/lib/ansible/modules/web_infrastructure/letsencrypt.py +++ b/lib/ansible/modules/web_infrastructure/letsencrypt.py @@ -464,7 +464,7 @@ class ACMEAccount(object): # ...and check if update is necessary do_update = False if 'contact' in result: - if cmp(contact, result['contact']) != 0: + if contact != result['contact']: do_update = True elif len(contact) > 0: do_update = True