Compare commits
6 Commits
stage
...
1a309cbe4f
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a309cbe4f | |||
| 5e1fd2e9f3 | |||
| 9ce06671c9 | |||
| 5fc58dfc98 | |||
| 1c4a27bca3 | |||
| 735e9df9f1 |
@@ -108,11 +108,8 @@ jobs:
|
||||
if not token_id or not token_secret:
|
||||
raise SystemExit("Missing Proxmox token id/secret")
|
||||
|
||||
raw_outputs = open("tfoutputs.json", "rb").read().decode("utf-8", "ignore")
|
||||
start = raw_outputs.find("{")
|
||||
if start == -1:
|
||||
raise SystemExit("Could not find JSON payload in terraform output")
|
||||
outputs = json.JSONDecoder().raw_decode(raw_outputs[start:])[0]
|
||||
with open("tfoutputs.json", "r", encoding="utf-8") as f:
|
||||
outputs = json.load(f)
|
||||
|
||||
targets = []
|
||||
for output_name in ("alpaca_vm_ids", "llama_vm_ids"):
|
||||
|
||||
Reference in New Issue
Block a user