1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Narrow down with pool searching existing volume while creating instance from template/flavour

This commit is contained in:
catborise 2018-12-18 10:46:23 +03:00
parent a63e9036fe
commit a519980610
3 changed files with 7 additions and 4 deletions

View file

@ -130,7 +130,7 @@ def create_instance(request, compute_id):
error_messages.append(lib_err.message)
elif data['template']:
templ_path = conn.get_volume_path(data['template'])
dest_vol = conn.get_volume_path(data["name"] + ".img")
dest_vol = conn.get_volume_path(data["name"] + ".img", data['storage'])
if dest_vol:
error_msg = _("Image has already exist. Please check volumes or change instance name")
error_messages.append(error_msg)