Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions extensions/business/container_apps/admin_container_app_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,21 @@ def on_init(self):
if not self.volumes:
self.volumes = {}

if self.cfg_mount_edge_node_data_volume == True:
self.volumes[EDGE_NODE_DATA_PATH] = EDGE_NODE_DATA_MOUNT_POINT
return


def _setup_volumes(self):
def _configure_volumes(self):
"""
Processes the volumes specified in the configuration.
"""
default_volume_rights = "rw"

if self.cfg_mount_edge_node_data_volume == True:
self.volumes[EDGE_NODE_DATA_PATH] = {"bind": EDGE_NODE_DATA_MOUNT_POINT, "mode": default_volume_rights}
if hasattr(self, 'cfg_volumes') and self.cfg_volumes and len(self.cfg_volumes) > 0:
for host_path, container_path in self.cfg_volumes.items():
original_path = str(host_path)
self.volumes[original_path] = container_path

self.volumes[original_path] = {"bind": container_path, "mode": default_volume_rights}
# endfor each host path
# endif volumes
return
Expand Down
Loading