naming
This commit is contained in:
parent
8a7dfbdb84
commit
559838e275
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user