mirror of
https://gh.llkk.cc/https://github.com/WeblateOrg/scripts.git
synced 2025-10-03 15:01:00 +08:00
feat: add check to subprocess
This commit is contained in:
parent
73011f066b
commit
04cfd03674
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ for record in dns_records:
|
||||||
cf.dns.records.delete(record.id, zone_id=zone.id)
|
cf.dns.records.delete(record.id, zone_id=zone.id)
|
||||||
print("Removing server...")
|
print("Removing server...")
|
||||||
for server in servers:
|
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...")
|
print("Disabling sentry cron monitors...")
|
||||||
for cron in cron_monitors:
|
for cron in cron_monitors:
|
||||||
response = requests.delete(
|
response = requests.delete(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue