From a6a83decba9f29cad7473299ecc247aa0717b8be Mon Sep 17 00:00:00 2001 From: dweinholz Date: Mon, 4 Jul 2022 16:36:37 +0200 Subject: [PATCH] fix playbook rmove copy of vars --- VirtualMachineService/ancon/Playbook.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VirtualMachineService/ancon/Playbook.py b/VirtualMachineService/ancon/Playbook.py index 5663decb..1bb2e2eb 100644 --- a/VirtualMachineService/ancon/Playbook.py +++ b/VirtualMachineService/ancon/Playbook.py @@ -178,6 +178,8 @@ def load_vars(): playbook_name_local = playbook_name + "-" + self.cloud_site original_playbook_var_yml=f"{self.playbooks_dir}/{playbook_name}/{playbook_name}_vars_file.yml" playbook_var_yml = f"/{playbook_name}_vars_file.yml" + LOG.info("Remove copy of vars file") + os.remove(self.directory.name + playbook_var_yml) try: with open(original_playbook_var_yml, mode="r") as original_vars_yml: