From 6976980b96b0c41bd9bf9367d3530a8d87d659e1 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Mon, 26 Dec 2022 00:27:17 +0100 Subject: [PATCH] fix: remove non-acme hypervisor domains from cert --- main.py | 3 +++ vm.py | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 3f3a570..f80d401 100644 --- a/main.py +++ b/main.py @@ -52,6 +52,9 @@ if __name__ == "__main__": domains = [] for vmo in vmList: for subdomain in vmo.subdomains: + if vmo.noTerminateACME: + print("Not terminating ACME for: {}".format(subdomain)) + continue if type(subdomain) == dict: domains.append(subdomain["name"]) else: diff --git a/vm.py b/vm.py index f6dad81..8d67c95 100644 --- a/vm.py +++ b/vm.py @@ -14,7 +14,6 @@ class VM: self.network = args.get("network") or "default" self.isExternal = args.get("external") self.noTerminateACME = args.get("no-terminate-acme") - print(self.noTerminateACME) if self.isExternal: self.lease = None