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

Taking alternate approach.

Revert "Fix hostname when get_distribution_version() returns a string."

This reverts commit 08f97c0b9d.
This commit is contained in:
Michael DeHaan 2014-07-28 11:35:33 -04:00
parent 8b77aa9843
commit fb60e767a7

View file

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