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
|
# services/comms/oneoffs/synapse-admin-ensure-job.yaml
|
||||||
# One-off job for comms/synapse-admin-ensure-12.
|
# One-off job for comms/synapse-admin-ensure-13.
|
||||||
# Purpose: synapse admin ensure 12 (see container args/env in this file).
|
# 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.
|
# 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.
|
# Safe to delete the finished Job/pod; it should not run continuously.
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: synapse-admin-ensure-12
|
name: synapse-admin-ensure-13
|
||||||
namespace: comms
|
namespace: comms
|
||||||
spec:
|
spec:
|
||||||
suspend: false
|
suspend: false
|
||||||
@ -108,8 +108,8 @@ spec:
|
|||||||
headers={"X-Vault-Token": token, "Content-Type": "application/json"},
|
headers={"X-Vault-Token": token, "Content-Type": "application/json"},
|
||||||
method="POST",
|
method="POST",
|
||||||
)
|
)
|
||||||
with urllib.request.urlopen(req, timeout=30) as resp:
|
with urllib.request.urlopen(req, timeout=30) as resp:
|
||||||
resp.read()
|
resp.read()
|
||||||
|
|
||||||
def ensure_admin_creds(token: str) -> dict:
|
def ensure_admin_creds(token: str) -> dict:
|
||||||
data = vault_get(token, "comms/synapse-admin")
|
data = vault_get(token, "comms/synapse-admin")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user