comms: fix vault_put indentation
This commit is contained in:
parent
caa6b73336
commit
9662d36ad3
@ -1,12 +1,12 @@
|
||||
# services/comms/oneoffs/synapse-admin-ensure-job.yaml
|
||||
# One-off job for comms/synapse-admin-ensure-12.
|
||||
# Purpose: synapse admin ensure 12 (see container args/env in this file).
|
||||
# One-off job for comms/synapse-admin-ensure-13.
|
||||
# Purpose: synapse admin ensure 13 (see container args/env in this file).
|
||||
# Run by setting spec.suspend to false, reconcile, then set it back to true.
|
||||
# Safe to delete the finished Job/pod; it should not run continuously.
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: synapse-admin-ensure-12
|
||||
name: synapse-admin-ensure-13
|
||||
namespace: comms
|
||||
spec:
|
||||
suspend: false
|
||||
@ -108,8 +108,8 @@ spec:
|
||||
headers={"X-Vault-Token": token, "Content-Type": "application/json"},
|
||||
method="POST",
|
||||
)
|
||||
with urllib.request.urlopen(req, timeout=30) as resp:
|
||||
resp.read()
|
||||
with urllib.request.urlopen(req, timeout=30) as resp:
|
||||
resp.read()
|
||||
|
||||
def ensure_admin_creds(token: str) -> dict:
|
||||
data = vault_get(token, "comms/synapse-admin")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user