Change parsing of docker info in dev build

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.
This commit is contained in:
Jesse Wattenbarger 2023-06-13 14:41:33 -04:00 committed by Dave
parent 402c29dc52
commit 3ae72219b4

View File

@ -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