Update remove script.
This commit is contained in:
parent
2df52fdea7
commit
dcf6010b69
BIN
__pycache__/constants.cpython-38.pyc
Normal file
BIN
__pycache__/constants.cpython-38.pyc
Normal file
Binary file not shown.
12
remove.py
12
remove.py
@ -13,10 +13,14 @@ def main():
|
|||||||
db_server = client.servers.get_by_name(DB_SERVER_NAME)
|
db_server = client.servers.get_by_name(DB_SERVER_NAME)
|
||||||
gitea_server = client.servers.get_by_name(GITEA_SERVER_NAME)
|
gitea_server = client.servers.get_by_name(GITEA_SERVER_NAME)
|
||||||
|
|
||||||
ssh_key.delete()
|
if ssh_key is not None:
|
||||||
vnet.delete()
|
ssh_key.delete()
|
||||||
db_server.delete()
|
if vnet is not None:
|
||||||
gitea_server.delete()
|
vnet.delete()
|
||||||
|
if db_server is not None:
|
||||||
|
db_server.delete()
|
||||||
|
if gitea_server is not None:
|
||||||
|
gitea_server.delete()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user