Skip to content

Commit

Permalink
Change parsing of docker info in dev build
Browse files Browse the repository at this point in the history
This is a non-functional change. The way os_info is populated with docker info
and grep 'Operating System' breaks on podman and likely in other places. This
makes it work on both podman and docker, and it will continue to return the
exact same strings everywhere else.
  • Loading branch information
jjwatt authored and dmzoneill committed Feb 12, 2024
1 parent 402c29d commit 3ae7221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/docker-compose/ansible/roles/sources/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

- name: Get OS info for sdb
shell: |
docker info | grep 'Operating System'
docker info 2> /dev/null | awk '/Os:/ { gsub(/Os:/, "Operating System:"); }/Operating System/ { print; }'
register: os_info
changed_when: false

Expand Down

0 comments on commit 3ae7221

Please sign in to comment.