mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use isfile check on package manager paths
This commit is contained in:
parent
631a10745d
commit
5bbf0d9cb6
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ class Facts(object):
|
||||||
else:
|
else:
|
||||||
self.facts['pkg_mgr'] = 'unknown'
|
self.facts['pkg_mgr'] = 'unknown'
|
||||||
for pkg in Facts.PKG_MGRS:
|
for pkg in Facts.PKG_MGRS:
|
||||||
if os.path.exists(pkg['path']):
|
if os.path.isfile(pkg['path']):
|
||||||
self.facts['pkg_mgr'] = pkg['name']
|
self.facts['pkg_mgr'] = pkg['name']
|
||||||
|
|
||||||
def get_service_mgr_facts(self):
|
def get_service_mgr_facts(self):
|
||||||
|
|
Loading…
Reference in a new issue