From 445b0eba0c2e8915789468d216b11812680279b8 Mon Sep 17 00:00:00 2001 From: XaverStiensmeier Date: Thu, 24 Oct 2024 16:13:49 +0200 Subject: [PATCH] removed mountPoint from a log message in case no mount point is specified --- bibigrid/core/actions/create.py | 2 +- resources/playbook/roles/bibigrid/files/slurm/create_server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bibigrid/core/actions/create.py b/bibigrid/core/actions/create.py index 6690e600..5bd943a1 100644 --- a/bibigrid/core/actions/create.py +++ b/bibigrid/core/actions/create.py @@ -296,7 +296,7 @@ def add_volume_device_info_to_instance(self, provider, server, instance, name): self.log.debug(f"Added Configuration: Instance {name} has volume {volume['name']} " f"as device {volume['device']} that is going to be mounted to " - f"{volume['mountPoint']}") + f"{volume.get('mountPoint')}") else: instance["volumes"] = [] diff --git a/resources/playbook/roles/bibigrid/files/slurm/create_server.py b/resources/playbook/roles/bibigrid/files/slurm/create_server.py index b16f49ce..6ac39915 100644 --- a/resources/playbook/roles/bibigrid/files/slurm/create_server.py +++ b/resources/playbook/roles/bibigrid/files/slurm/create_server.py @@ -173,7 +173,7 @@ def volumes_host_vars_update(connection, server, host_vars): logging.debug(f"Added Configuration: Instance {server['name']} has volume {volume['name']} " f"as device {volume['device']} that is going to be mounted to " - f"{volume['mountPoint']}") + f"{volume.get('mountPoint')}") with open(host_vars_path, mode="w+", encoding="utf-8") as host_vars_file: yaml.dump(host_vars, host_vars_file) logging.info(f"{host_vars_path}.lock released")