Fixed values passed to share_rpcapi.create_share.
Values passed to share_rpcapi.create_share were in incorrect order. Fixed bug 1232126 Change-Id: Icaa9dcaea9d0ee7f325620380180994ce4e838dc
This commit is contained in:
parent
9eb5e22d23
commit
6dcaa7bdc0
|
@ -64,8 +64,10 @@ class SimpleScheduler(chance.ChanceScheduler):
|
|||
self.share_rpcapi.create_share(context,
|
||||
updated_share,
|
||||
host,
|
||||
snapshot_id,
|
||||
None)
|
||||
request_spec,
|
||||
None,
|
||||
snapshot_id=snapshot_id
|
||||
)
|
||||
return None
|
||||
|
||||
results = db.service_get_all_share_sorted(elevated)
|
||||
|
@ -83,7 +85,9 @@ class SimpleScheduler(chance.ChanceScheduler):
|
|||
self.share_rpcapi.create_share(context,
|
||||
updated_share,
|
||||
service['host'],
|
||||
snapshot_id, None)
|
||||
request_spec,
|
||||
None,
|
||||
snapshot_id=snapshot_id)
|
||||
return None
|
||||
msg = _("Is the appropriate service running?")
|
||||
raise exception.NoValidHost(reason=msg)
|
||||
|
|
Loading…
Reference in New Issue