Do not fail on non-fatal errors. (#810)

This commit is contained in:
Felix Fontein
2024-02-28 21:43:30 +01:00
committed by GitHub
parent d4b654793e
commit 37e28b62d3
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -404,6 +404,8 @@ def is_failed(events, rc):
def update_failed(result, events, args, stdout, stderr, rc, cli):
if not rc:
return False
errors = []
for event in events:
if event.status in DOCKER_STATUS_ERROR:
@@ -419,8 +421,6 @@ def update_failed(result, events, args, stdout, stderr, rc, cli):
status=event.status,
msg=event.msg,
))
if not errors and not rc:
return False
if not errors:
errors.append('Return code {code} is non-zero'.format(code=rc))
result['failed'] = True