From 35a27b76856641cac0df7d5aa09d28c486b0900b Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Wed, 12 Jun 2024 12:06:41 +0200 Subject: [PATCH] fix: actually use the Cloudflare environment token --- nyacme/handlers/cloudflare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyacme/handlers/cloudflare.py b/nyacme/handlers/cloudflare.py index fa950e7..0f0fd18 100644 --- a/nyacme/handlers/cloudflare.py +++ b/nyacme/handlers/cloudflare.py @@ -22,7 +22,7 @@ class CloudflareHandler(Handler): def run(self, args: list[str]) -> Any: env = os.environ.copy() env['CF_API_TOKEN'] = self.secret - res = subprocess.run(['flarectl', '--json'] + args, check=True, stdout=subprocess.PIPE) + res = subprocess.run(['flarectl', '--json'] + args, check=True, stdout=subprocess.PIPE, env=env) return json.loads(res.stdout) def create(self, record_name: str, record_value: str) -> None: