]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Merge "Don't clear _mounted_shares list in remoteFS while updating"
authorJenkins <jenkins@review.openstack.org>
Mon, 15 Sep 2014 04:04:13 +0000 (04:04 +0000)
committerGerrit Code Review <review@openstack.org>
Mon, 15 Sep 2014 04:04:13 +0000 (04:04 +0000)
1  2 
cinder/volume/drivers/remotefs.py

index d72d57f5d6d8e8d4897f4d5b0c19df8eccf646d1,d62f14e80fe1924d2b1cb80bd186c2ee1b0954ba..a9fe7f1adb8944dc92f65c4c3bf7ddaa36bf1452
@@@ -147,10 -147,12 +147,12 @@@ class RemoteFSDriver(driver.VolumeDrive
          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,))
 +                LOG.error(_('Exception during mounting %s') % (exc,))
  
+         self._mounted_shares = mounted_shares
          LOG.debug('Available shares %s' % self._mounted_shares)
  
      def create_cloned_volume(self, volume, src_vref):