mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-28 03:49:09 -07:00
foo.split('\n') is picky about the type of 'foo'. if 'foo' is a bytes type, then foo.split('\n') will fail on py3 with: TypeError: a bytes-like object is required, not 'str' The foo.split('\n') change isn't strictly required when run_command returns native str types, but it is more idiomatic and conceptually also supports other line endings. |
||
---|---|---|
.. | ||
ansible |