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:
parent
a63e9036fe
commit
a519980610
3 changed files with 7 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue