mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Addresses #5090 setup module was using path.is_file instead of path.isfile
This commit is contained in:
parent
01388d1d21
commit
bf78d8cf73
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ def get_distribution():
|
||||||
if platform.system() == 'Linux':
|
if platform.system() == 'Linux':
|
||||||
try:
|
try:
|
||||||
distribution = platform.linux_distribution()[0].capitalize()
|
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()
|
distribution = platform.linux_distribution(supported_dists=['system'])[0].capitalize()
|
||||||
if 'Amazon' in distribution:
|
if 'Amazon' in distribution:
|
||||||
distribution = 'Amazon'
|
distribution = 'Amazon'
|
||||||
|
|
Loading…
Reference in a new issue