Incorrect platform check fix
bugs.launchpad.net/monasca/+bug/1436449 Closes-Bug: #1436449 Change-Id: Ia90e6a2e51c085afcbf9c678f675a0e7306516e3
This commit is contained in:
@@ -104,8 +104,9 @@ def main(argv=None):
|
|||||||
# Detect os
|
# Detect os
|
||||||
detected_os = platform.system()
|
detected_os = platform.system()
|
||||||
if detected_os == 'Linux':
|
if detected_os == 'Linux':
|
||||||
linux_flavor = platform.linux_distribution()[0]
|
supported_linux_flavors = ['Ubuntu', 'debian']
|
||||||
if 'Ubuntu' or 'debian' in linux_flavor:
|
this_linux_flavor = platform.linux_distribution()[0]
|
||||||
|
if this_linux_flavor in supported_linux_flavors:
|
||||||
for package in ['coreutils']:
|
for package in ['coreutils']:
|
||||||
# Check for required dependencies for system checks
|
# Check for required dependencies for system checks
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user