Skip to content

Commit

Permalink
fix: formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya-Solulab committed Nov 29, 2024
1 parent 28106ef commit 9d4b708
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions operate/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,16 +484,16 @@ def _build_docker(
# "SKILL_TRADER_ABCI_MODELS_PARAMS_ARGS_MECH_REQUEST_PRICE=10000000000000000" # noqa
# ) # noqa

#temporary fix: remove extra volume
for service_name, service_data in deployment['services'].items():
if 'abci' in service_name:
# temporary fix: remove extra volume
for service_name, service_data in deployment["services"].items():
if "abci" in service_name:
# Access the volumes list in this service
volumes = service_data.get('volumes', [])
volumes = service_data.get("volumes", [])

# Remove './data:/data:Z' if it's in the volumes list
if './data:/data:Z' in volumes:
volumes.remove('./data:/data:Z')
if "./data:/data:Z" in volumes:
volumes.remove("./data:/data:Z")

with (build / DOCKER_COMPOSE_YAML).open("w", encoding="utf-8") as stream:
yaml_dump(data=deployment, stream=stream)

Expand Down

0 comments on commit 9d4b708

Please sign in to comment.