Skip to content

Commit

Permalink
removed mountPoint from a log message in case no mount point is speci…
Browse files Browse the repository at this point in the history
…fied
  • Loading branch information
XaverStiensmeier committed Oct 24, 2024
1 parent 4d38777 commit 445b0eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bibigrid/core/actions/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = []

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 445b0eb

Please sign in to comment.