Merge "Manage existing: fix volume object saving"
This commit is contained in:
commit
f38e70031a
@ -79,8 +79,8 @@ class ManageExistingTask(flow_utils.CinderTask):
|
|||||||
model_update = {}
|
model_update = {}
|
||||||
model_update.update({'size': size})
|
model_update.update({'size': size})
|
||||||
try:
|
try:
|
||||||
volume_ref = self.db.volume_update(context, volume_ref['id'],
|
volume_ref.update(model_update)
|
||||||
model_update)
|
volume_ref.save()
|
||||||
except exception.CinderException:
|
except exception.CinderException:
|
||||||
LOG.exception(_LE("Failed updating model of volume %(volume_id)s"
|
LOG.exception(_LE("Failed updating model of volume %(volume_id)s"
|
||||||
" with creation provided model %(model)s") %
|
" with creation provided model %(model)s") %
|
||||||
|
Loading…
Reference in New Issue
Block a user