Only parse /etc/os-release if it isn't empty
Compare changes
+ 4
− 2
@@ -121,8 +121,10 @@ def _Linux_os():
The fields in /etc/os-release
are all optional and some systems provide an empty file.
This follows how Ansible handles this: https://github.com/ansible/ansible/pull/7887