Merge "Manage existing: fix volume object saving"

This commit is contained in:
Jenkins 2015-11-20 11:03:18 +00:00 committed by Gerrit Code Review
commit f38e70031a

View File

@ -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") %