Skip to content

Commit

Permalink
fix listVolumes
Browse files Browse the repository at this point in the history
  • Loading branch information
naoyaprocube committed Dec 6, 2023
1 parent 8a0d714 commit f64e2e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hive_builder/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,9 @@ def do(self, context):
for service in loaded_yml['services'].values():
volumes = service.get('volumes')
if volumes is not None:
volume_name = volumes[0].get('source')
volumes_list.append(volume_name)
for volume in volumes:
volume_name = volume.get('source')
volumes_list.append(volume_name)
print(" ".join(volumes_list))


Expand Down

0 comments on commit f64e2e4

Please sign in to comment.