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
|
||||
detected_os = platform.system()
|
||||
if detected_os == 'Linux':
|
||||
linux_flavor = platform.linux_distribution()[0]
|
||||
if 'Ubuntu' or 'debian' in linux_flavor:
|
||||
supported_linux_flavors = ['Ubuntu', 'debian']
|
||||
this_linux_flavor = platform.linux_distribution()[0]
|
||||
if this_linux_flavor in supported_linux_flavors:
|
||||
for package in ['coreutils']:
|
||||
# Check for required dependencies for system checks
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user