From bf78d8cf73904f994f2e0d05a7ef737ea313334a Mon Sep 17 00:00:00 2001 From: James Tanner Date: Thu, 5 Dec 2013 11:36:54 -0500 Subject: [PATCH] Addresses #5090 setup module was using path.is_file instead of path.isfile --- lib/ansible/module_utils/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 6b3badf8067..49d906d2301 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -122,7 +122,7 @@ def get_distribution(): if platform.system() == 'Linux': try: distribution = platform.linux_distribution()[0].capitalize() - if not distribution and os.path.is_file('/etc/system-release'): + if not distribution and os.path.isfile('/etc/system-release'): distribution = platform.linux_distribution(supported_dists=['system'])[0].capitalize() if 'Amazon' in distribution: distribution = 'Amazon'