Fix adi command if there are actually checks

This commit is contained in:
Stephan Kulow 2019-03-08 21:54:11 +01:00
parent 7f2195fb57
commit ae5ccf31d4

View File

@ -55,7 +55,7 @@ class AdiCommand:
for check in info['missing_checks']: for check in info['missing_checks']:
print(query_project + ' ' + Fore.MAGENTA + 'missing: {}'.format(check)) print(query_project + ' ' + Fore.MAGENTA + 'missing: {}'.format(check))
return return
for check in project.get('checks', []): for check in info['checks']:
if check['state'] != 'success': if check['state'] != 'success':
print(query_project + '{} {} check: {}'.format(Fore.MAGENTA, check['state'], check['name'])) print(query_project + '{} {} check: {}'.format(Fore.MAGENTA, check['state'], check['name']))
return return