Skip to content

Commit

Permalink
Revert "Fix get_distribution() for platforms that may have spaces"
Browse files Browse the repository at this point in the history
This reverts commit 2493020.
  • Loading branch information
jimi-c committed Jul 2, 2014
1 parent 0ee28c1 commit 81f3532
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/ansible/module_utils/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 81f3532

Please sign in to comment.