1
0
Fork 0
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:
James Cammarata 2014-07-02 09:44:44 -05:00
parent 0ee28c1a0e
commit 81f35323e9

View file

@ -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: