From e41f89d507ec92339bf8751e1f5fd72233ff299d Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Thu, 10 Jan 2013 15:08:00 +0400 Subject: [PATCH] Fix distribution detection - return string instead of functions --- lib/ansible/module_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_common.py b/lib/ansible/module_common.py index 3db84395b9f..882e5cda7b1 100644 --- a/lib/ansible/module_common.py +++ b/lib/ansible/module_common.py @@ -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