Merge "Don't clear _mounted_shares list in remoteFS while updating"
This commit is contained in:
commit
19429c7f76
@ -138,7 +138,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 +
|
||||
@ -147,10 +147,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.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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user