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:
parent
8b77aa9843
commit
fb60e767a7
1 changed files with 1 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue