feat: add check to subprocess

This commit is contained in:
Michal Čihař 2025-03-25 10:06:15 +01:00
parent 73011f066b
commit 04cfd03674

View file

@ -76,7 +76,7 @@ for record in dns_records:
cf.dns.records.delete(record.id, zone_id=zone.id)
print("Removing server...")
for server in servers:
subprocess.run(["hcloud", "server", "delete", str(server["id"])])
subprocess.run(["hcloud", "server", "delete", str(server["id"])], check=True)
print("Disabling sentry cron monitors...")
for cron in cron_monitors:
response = requests.delete(