Merge "Fix manage_existing API behaving wrongly with storage pools"
This commit is contained in:
commit
b8ed8c00d0
@ -1689,11 +1689,16 @@ class API(base.Base):
|
||||
if availability_zone is None:
|
||||
availability_zone = service.availability_zone
|
||||
|
||||
if not cluster_name and bool(volume_utils.extract_host(host, 'pool')):
|
||||
manage_host = host
|
||||
else:
|
||||
manage_host = service.host
|
||||
|
||||
manage_what = {
|
||||
'context': context,
|
||||
'name': name,
|
||||
'description': description,
|
||||
'host': service.host,
|
||||
'host': manage_host,
|
||||
'cluster_name': service.cluster_name,
|
||||
'ref': ref,
|
||||
'volume_type': volume_type,
|
||||
|
Loading…
x
Reference in New Issue
Block a user