Fix adi command if there are actually checks
This commit is contained in:
parent
7f2195fb57
commit
ae5ccf31d4
@ -55,7 +55,7 @@ class AdiCommand:
|
||||
for check in info['missing_checks']:
|
||||
print(query_project + ' ' + Fore.MAGENTA + 'missing: {}'.format(check))
|
||||
return
|
||||
for check in project.get('checks', []):
|
||||
for check in info['checks']:
|
||||
if check['state'] != 'success':
|
||||
print(query_project + '{} {} check: {}'.format(Fore.MAGENTA, check['state'], check['name']))
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user