This commit is contained in:
nlitkowski 2022-01-05 14:36:57 +01:00
parent 8a7dfbdb84
commit 559838e275
2 changed files with 6 additions and 5 deletions

View File

@ -11,9 +11,9 @@ from hcloud.server_types.domain import ServerType
from constants import *
from hcloud.load_balancer_types.domain import LoadBalancerType
from hcloud.load_balancers.domain import LoadBalancerHealthCheck, LoadBalancerService, LoadBalancerHealtCheckHttp, LoadBalancerTarget
from remove import remove_resources
def main():
def deploy():
with open(API_KEY_FNAME) as f:
api_key = f.read()
@ -138,4 +138,5 @@ def create_load_balancer(client: Client, vnet: BoundNetwork, ssh_key: BoundSSHKe
return load_balancer
if __name__ == '__main__':
main()
deploy()
# remove_resources()

View File

@ -2,7 +2,7 @@ from constants import *
from hcloud import Client
def main():
def remove_resources():
with open(API_KEY_FNAME) as f:
api_key = f.read()
@ -21,4 +21,4 @@ def main():
vnet.delete()
if __name__ == "__main__":
main()
remove_resources()