Skip to content

Commit

Permalink
fixed wrong function call
Browse files Browse the repository at this point in the history
  • Loading branch information
XaverStiensmeier committed Oct 28, 2024
1 parent aae6c68 commit 7ab04de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit 7ab04de

Please sign in to comment.