|
|
@ -122,8 +122,11 @@ def get_distribution():
|
|
|
|
if platform.system() == 'Linux':
|
|
|
|
if platform.system() == 'Linux':
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
distribution = platform.linux_distribution()[0].capitalize()
|
|
|
|
distribution = platform.linux_distribution()[0].capitalize()
|
|
|
|
if distribution == 'NA':
|
|
|
|
if not distribution and os.path.is_file('/etc/system-release'):
|
|
|
|
if os.path.is_file('/etc/system-release'):
|
|
|
|
distribution = platform.linux_distribution(supported_dists=['system'])[0].capitalize()
|
|
|
|
|
|
|
|
if 'Amazon' in distribution:
|
|
|
|
|
|
|
|
distribution = 'Amazon'
|
|
|
|
|
|
|
|
else:
|
|
|
|
distribution = 'OtherLinux'
|
|
|
|
distribution = 'OtherLinux'
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
# FIXME: MethodMissing, I assume?
|
|
|
|
# FIXME: MethodMissing, I assume?
|
|
|
|