Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
#38 deletion works fix #43
Browse files Browse the repository at this point in the history
taivop committed Oct 6, 2016
1 parent 39f1d10 commit 288bb88
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/py/deployer.py
Original file line number Diff line number Diff line change
@@ -54,5 +54,9 @@ def deploy(self):
def destroy(self):
"""Destroy the given resource group"""
logging.info("Destroying resource group {}...".format(self.resource_group))
self.client.resource_groups.delete(self.resource_group)
logging.info("Does it exist? {}".format(
self.client.resource_groups.check_existence(self.resource_group))
)
deletion_async_operation = self.client.resource_groups.delete(self.resource_group)
deletion_async_operation.wait()
logging.info("Destroyed.")
2 changes: 1 addition & 1 deletion scripts/py/test_deployment.py
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
# endregion

# region ---- Parameters ----
my_resource_group = 'azure-python-deployment-test'
my_resource_group = 'azure-python-deployment-test-4'
my_pub_ssh_key_path = os.path.expanduser('~/.ssh/id_rsa.pub')
template_path = "azure-templates/test_template.json"
dns_label_prefix = Haikunator().haikunate()

0 comments on commit 288bb88

Please sign in to comment.