Browse Source

acme_updater: replace number comparison with else for certificate serials

Helmut Pozimski 7 years ago
parent
commit
d58928ddfc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      acme_updater.py

+ 1 - 1
acme_updater.py

@@ -162,7 +162,7 @@ for entry in PARSED_VHOSTS:
                     if serial_current_cert == serial_acme_cert:
                         LOGGER.debug("Cert for %s matches with the one "
                                      "installed, nothing to do.", entry[1])
-                    elif serial_acme_cert > serial_current_cert:
+                    else:
                         if copy_file(acme_cert_path, entry[1]):
                             acme_key_path = os.path.join(ACME_STATE_DIR,
                                                          "live", entry[0],