py3: update_mod_nss_cipher_suite: ordering doesn't work with None

Py3 doesn't support ordering with None value

https://fedorahosted.org/freeipa/ticket/4985

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Martin Basti 2017-02-13 17:34:19 +01:00
parent c6a57d8091
commit 99771ceb9f

View File

@ -1438,7 +1438,7 @@ def update_mod_nss_cipher_suite(http):
root_logger.info('[Updating mod_nss cipher suite]')
revision = sysupgrade.get_upgrade_state('nss.conf', 'cipher_suite_updated')
if revision >= httpinstance.NSS_CIPHER_REVISION:
if revision and revision >= httpinstance.NSS_CIPHER_REVISION:
root_logger.debug("Cipher suite already updated")
return