fix get_distribution_version() on amazon linux
This commit is contained in:
parent
4b8dcb2ae4
commit
909955f2e2
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,8 @@ def get_distribution_version():
|
|||
if platform.system() == 'Linux':
|
||||
try:
|
||||
distribution_version = platform.linux_distribution()[1]
|
||||
if not distribution_version and os.path.isfile('/etc/system-release'):
|
||||
distribution_version = platform.linux_distribution(supported_dists=['system'])[1]
|
||||
except:
|
||||
# FIXME: MethodMissing, I assume?
|
||||
distribution_version = platform.dist()[1]
|
||||
|
|
Loading…
Reference in a new issue