1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Letsencrypt fix (#24906)

* Replaced deprecated cmp with custom condition

References  #24756

* Fix PEP 08 indention
This commit is contained in:
kgottholm 2017-05-22 17:41:47 -04:00 committed by Toshio Kuratomi
parent 3b45a9eb58
commit 16d522cf2c

View file

@ -464,7 +464,7 @@ class ACMEAccount(object):
# ...and check if update is necessary # ...and check if update is necessary
do_update = False do_update = False
if 'contact' in result: if 'contact' in result:
if cmp(contact, result['contact']) != 0: if contact != result['contact']:
do_update = True do_update = True
elif len(contact) > 0: elif len(contact) > 0:
do_update = True do_update = True