瀏覽代碼

acme_updater: replace number comparison with else for certificate serials

Helmut Pozimski 7 年之前
父節點
當前提交
d58928ddfc
共有 1 個文件被更改,包括 1 次插入1 次删除
  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],