Skip to content

Commit

Permalink
upload-certificate: fix event payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Amygos committed Sep 13, 2024
1 parent b63d7c9 commit dc50867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imageroot/actions/upload-certificate/23export_certificates
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ result = subprocess.run(
)

subject = result.stdout
domain = subject.split("\n")[1].split("CN=")[1]
domain = {'main': subject.split("\n")[1].split("CN=")[1]}

# save the certificate and key in redis
rdb = agent.redis_connect(privileged=True)
rkey = f'module/{module_id}/certificate/{domain}'
rkey = f'module/{module_id}/certificate/{domain["main"]}'
rdb.hset(rkey, mapping={"cert": data["certFile"], "key": data["keyFile"], "custom": "true"})

# signal the certificate-updated event
Expand Down

0 comments on commit dc50867

Please sign in to comment.