From 15fafd4fff576c342692b8227b8648dec45d6d7b Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 20 Apr 2024 17:22:34 +0200 Subject: [PATCH] updated pki modules --- states/_modules/pki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/states/_modules/pki.py b/states/_modules/pki.py index df1a212..9d439b7 100644 --- a/states/_modules/pki.py +++ b/states/_modules/pki.py @@ -37,7 +37,7 @@ def get_pki_cert(url="http://pki", headers={"Content-Type":"application/json"}) authstring = base64.b64encode(f"{username}:{password}".encode()).decode() req.add_header("Authorization", f"Basic {authstring}") - jsondata = json.dumps(domains) + jsondata = json.dumps({"domains":domains}) res = urlopen(req, jsondata.encode('utf-8')) resj = json.loads(res.read())