Merge "Fix volume OVO create method"
This commit is contained in:
commit
ff4aa16cba
@ -351,7 +351,8 @@ class Volume(cleanable.CinderCleanableObject, base.CinderObject,
|
||||
volume_types.get_default_volume_type()['id'])
|
||||
|
||||
db_volume = db.volume_create(self._context, updates)
|
||||
self._from_db_object(self._context, self, db_volume)
|
||||
expected_attrs = self._get_expected_attrs(self._context)
|
||||
self._from_db_object(self._context, self, db_volume, expected_attrs)
|
||||
|
||||
def save(self):
|
||||
updates = self.cinder_obj_get_changes()
|
||||
|
@ -353,9 +353,6 @@ class API(base.Base):
|
||||
if flow_engine.storage.fetch('refresh_az'):
|
||||
self.list_availability_zones(enable_cache=True,
|
||||
refresh_cache=True)
|
||||
# Refresh the object here, otherwise things ain't right
|
||||
vref = objects.Volume.get_by_id(
|
||||
context, vref['id'])
|
||||
LOG.info("Create volume request issued successfully.",
|
||||
resource=vref)
|
||||
return vref
|
||||
|
Loading…
x
Reference in New Issue
Block a user