1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #1851 from Pinkbyte/distribution_fix

Fix distribution detection - return string instead of functions
This commit is contained in:
Michael DeHaan 2013-01-10 05:03:17 -08:00
commit f095f7c8c5

View file

@ -96,10 +96,10 @@ def get_distribution():
''' return the distribution name '''
if platform.system() == 'Linux':
try:
distribution = platform.linux_distribution()[0].capitalize
distribution = platform.linux_distribution()[0].capitalize()
except:
# FIXME: MethodMissing, I assume?
distribution = platform.dist()[0].capitalize
distribution = platform.dist()[0].capitalize()
else:
distribution = None
return distribution