From 9607e2e6e444e5eb087dd3742d25b3419a1c2ee0 Mon Sep 17 00:00:00 2001 From: Gorka Eguileor Date: Mon, 1 Mar 2021 13:13:38 +0100 Subject: [PATCH] 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 --- cinder/volume/api.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cinder/volume/api.py b/cinder/volume/api.py index 7198f97b622..d9e6c6a1214 100644 --- a/cinder/volume/api.py +++ b/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