fix(scripts): 🐛 Fix yaml loading in deploy.py.

This commit is contained in:
2025-03-16 00:28:00 -03:00
parent 4788fff949
commit 28d243a37a
3 changed files with 36 additions and 3 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ time.sleep(15)
with open("./k8s/bot.yml") as stream:
try:
data = yaml.safe_load(stream)
docs = yaml.load_all(stream, yaml.Loader)
data = docs[0]
os.system(f"microk8s kubectl exec bot-{data["spec"]["replicas"] - 1} -- uv run aerich upgrade")
except yaml.YAMLError as exc: