diff --git a/cinder/volume/drivers/nfs.py b/cinder/volume/drivers/nfs.py index 2ef4cb42e8d..dea9b511123 100644 --- a/cinder/volume/drivers/nfs.py +++ b/cinder/volume/drivers/nfs.py @@ -536,13 +536,13 @@ class NfsDriver(remotefs.RemoteFSSnapDriverDistributed): self._stats = data - @coordination.synchronized('{self.driver_prefix}-{volume[id]}') + @coordination.synchronized('{self.driver_prefix}-{volume.id}') def create_volume(self, volume): """Apply locking to the create volume operation.""" return super(NfsDriver, self).create_volume(volume) - @coordination.synchronized('{self.driver_prefix}-{volume[id]}') + @coordination.synchronized('{self.driver_prefix}-{volume.id}') def delete_volume(self, volume): """Deletes a logical volume."""