From fb60e767a72fc6507961199d62b3ce81db44b5e6 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 28 Jul 2014 11:35:33 -0400 Subject: [PATCH] Taking alternate approach. Revert "Fix hostname when get_distribution_version() returns a string." This reverts commit 08f97c0b9d204ac957cc6d491b1ed59231def993. --- lib/ansible/module_utils/basic.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 7e71231a325..35f63ab5e82 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -190,11 +190,8 @@ def get_distribution_version(): except: # FIXME: MethodMissing, I assume? distribution_version = platform.dist()[1] - if type(distribution_version) == str: - distribution_version = 0 else: - distribution_version = 0 - + distribution_version = None return distribution_version def load_platform_subclass(cls, *args, **kwargs):