From d996a2c216c4ad7a3cb69e160c55cbbf6a15c62e Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 21 Apr 2015 11:48:43 -0400 Subject: [PATCH] ported fix from v1 to v2 on oracle linux family detection --- v2/ansible/module_utils/facts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/ansible/module_utils/facts.py b/v2/ansible/module_utils/facts.py index 5d70df4294c..66ca86c3969 100644 --- a/v2/ansible/module_utils/facts.py +++ b/v2/ansible/module_utils/facts.py @@ -87,7 +87,7 @@ class Facts(object): _I386RE = re.compile(r'i([3456]86|86pc)') # For the most part, we assume that platform.dist() will tell the truth. # This is the fallback to handle unknowns or exceptions - OSDIST_LIST = ( ('/etc/oracle-release', 'Oracle Linux'), + OSDIST_LIST = ( ('/etc/oracle-release', 'OracleLinux'), ('/etc/redhat-release', 'RedHat'), ('/etc/vmware-release', 'VMwareESX'), ('/etc/openwrt_release', 'OpenWrt'), @@ -294,7 +294,7 @@ class Facts(object): # Once we determine the value is one of these distros # we trust the values are always correct break - elif name == 'Oracle Linux': + elif name == 'OracleLinux': data = get_file_content(path) if 'Oracle Linux' in data: self.facts['distribution'] = name