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())