From 7ab04de21d50ffc8e2299b9da6bac5329f8fdbcb Mon Sep 17 00:00:00 2001 From: XaverStiensmeier Date: Mon, 28 Oct 2024 12:08:25 +0100 Subject: [PATCH] fixed wrong function call --- resources/playbook/roles/bibigrid/files/slurm/create_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/playbook/roles/bibigrid/files/slurm/create_server.py b/resources/playbook/roles/bibigrid/files/slurm/create_server.py index 609230a6..cd3182d6 100644 --- a/resources/playbook/roles/bibigrid/files/slurm/create_server.py +++ b/resources/playbook/roles/bibigrid/files/slurm/create_server.py @@ -136,7 +136,7 @@ def create_server_volumes(connection, host_vars, name): else: if volume.get('name'): logging.debug(f"Trying to find volume {volume['name']}") - return_volume = connection.get_volume_by_id_or_name(volume["name"]) + return_volume = connection.get_volume(volume["name"]) if not return_volume: volume["name"] = f"{base_volume_name}-{volume['name']}" return_volume = connection.create_volume(size=volume.get("size", 50), name=volume['name'])