diff --git a/hpedockerplugin/file_manager.py b/hpedockerplugin/file_manager.py index 5a86401f..bd6899ad 100644 --- a/hpedockerplugin/file_manager.py +++ b/hpedockerplugin/file_manager.py @@ -812,11 +812,13 @@ def mount_share(self, share_name, share, mount_id): client_ips = share['clientIPs'] client_ips.append(my_ip) - # node_mnt_info not present - node_mnt_info = { - self._node_id: [mount_id] - } - share['path_info'] = node_mnt_info + if path_info: + path_info[self._node_id] = [mount_id] + else: + # node_mnt_info not present + share['path_info'] = { + self._node_id: [mount_id] + } self._create_mount_dir(mount_dir) LOG.info("Mounting share path %s to %s" % (share_path, mount_dir))