From 16d522cf2cfcd85bce377cda26865f15f299c892 Mon Sep 17 00:00:00 2001 From: kgottholm Date: Mon, 22 May 2017 17:41:47 -0400 Subject: [PATCH] Letsencrypt fix (#24906) * Replaced deprecated cmp with custom condition References #24756 * Fix PEP 08 indention --- lib/ansible/modules/web_infrastructure/letsencrypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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