mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Revert "Fix get_distribution() for platforms that may have spaces"
This reverts commit 2493020d9f
.
This commit is contained in:
parent
0ee28c1a0e
commit
81f35323e9
1 changed files with 0 additions and 2 deletions
|
@ -167,8 +167,6 @@ def get_distribution():
|
|||
if platform.system() == 'Linux':
|
||||
try:
|
||||
distribution = platform.linux_distribution()[0].capitalize()
|
||||
if " " in distribution:
|
||||
distribution = distribution.split()[0]
|
||||
if not distribution and os.path.isfile('/etc/system-release'):
|
||||
distribution = platform.linux_distribution(supported_dists=['system'])[0].capitalize()
|
||||
if 'Amazon' in distribution:
|
||||
|
|
Loading…
Reference in a new issue