mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
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:
parent
402c29dc52
commit
3ae72219b4
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user