diff options
-rw-r--r-- | cinder/volume/drivers/nfs.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cinder/volume/drivers/nfs.py b/cinder/volume/drivers/nfs.py index 19347738c..82ae373cc 100644 --- a/cinder/volume/drivers/nfs.py +++ b/cinder/volume/drivers/nfs.py @@ -145,7 +145,7 @@ class RemoteFsDriver(driver.VolumeDriver): """Look for remote shares in the flags and tries to mount them locally. """ - self._mounted_shares = [] + mounted_shares = [] self._load_shares_config(getattr(self.configuration, self.driver_prefix + @@ -154,10 +154,12 @@ class RemoteFsDriver(driver.VolumeDriver): for share in self.shares.keys(): try: self._ensure_share_mounted(share) - self._mounted_shares.append(share) + mounted_shares.append(share) except Exception as exc: LOG.warning(_('Exception during mounting %s') % (exc,)) + self._mounted_shares = mounted_shares + LOG.debug('Available shares %s' % str(self._mounted_shares)) def create_cloned_volume(self, volume, src_vref): |