Browse Source

Remove unnecessary save call

In Change-ID Ic8a8ba2271d6ed672b694d3991dabd46bd9a69f4 we added:

  vref.multiattach = self._is_multiattach(volume_type)
  vref.save()

Then we remove the assignment but forgot to remove the save.
This patch removes that unnecessary save call.

Change-Id: I993444ba3b6e976d40ae7c5858b32999eb337c66
changes/48/778048/3
Gorka Eguileor 7 months ago
parent
commit
9607e2e6e4
  1. 1
      cinder/volume/api.py

1
cinder/volume/api.py

@ -356,7 +356,6 @@ class API(base.Base):
# Refresh the object here, otherwise things ain't right
vref = objects.Volume.get_by_id(
context, vref['id'])
vref.save()
LOG.info("Create volume request issued successfully.",
resource=vref)
return vref

Loading…
Cancel
Save