in lib/muchos/azure.py [0:0]
def wipe(self):
super().wipe()
# Wipe ADLS Gen2 storage accounts if implemented
config = self.config
azure_config = dict(config.items("azure"))
azure_config["vmss_name"] = config.cluster_name
azure_config["cluster_type"] = config.get("general", "cluster_type")
azure_config["deploy_path"] = config.deploy_path
azure_config = {
k: VmssCluster._parse_config_value(v)
for k, v in azure_config.items()
}
retcode = subprocess.call(
[
"ansible-playbook",
path.join(
config.deploy_path,
"ansible/azure_wipe.yml",
),
"--extra-vars",
json.dumps(azure_config),
]
)
if retcode != 0:
exit(
"ERROR - Command failed with return code of {0}".format(
retcode
)
)