Commit 5efc4efc by Christian Hammerl

Fix os_family and distribution on archlinux

Fixes #8732, ansible/ansible-modules-core#34
parent 57d2622c
...@@ -273,7 +273,8 @@ class Facts(object): ...@@ -273,7 +273,8 @@ class Facts(object):
self.facts['distribution_release'] = dist[2] or 'NA' self.facts['distribution_release'] = dist[2] or 'NA'
# Try to handle the exceptions now ... # Try to handle the exceptions now ...
for (path, name) in Facts.OSDIST_LIST: for (path, name) in Facts.OSDIST_LIST:
if os.path.exists(path) and os.path.getsize(path) > 0: if os.path.exists(path):
if os.path.getsize(path) > 0:
if self.facts['distribution'] in ('Fedora', ): if self.facts['distribution'] in ('Fedora', ):
# Once we determine the value is one of these distros # Once we determine the value is one of these distros
# we trust the values are always correct # we trust the values are always correct
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment