Use isfile check on package manager paths

(cherry picked from commit 5bbf0d9cb6)
pull/23812/head
Logan Attwood 9 years ago committed by Toshio Kuratomi
parent c84a332531
commit d74509a235

@ -330,7 +330,7 @@ class Facts(object):
else:
self.facts['pkg_mgr'] = 'unknown'
for pkg in Facts.PKG_MGRS:
if os.path.exists(pkg['path']):
if os.path.isfile(pkg['path']):
self.facts['pkg_mgr'] = pkg['name']
def get_service_mgr_facts(self):

Loading…
Cancel
Save