Browse Source

Merge "Exclude non failing gathering facts action in simplified result"

changes/15/759815/1
Zuul 4 months ago
committed by Gerrit Code Review
parent
commit
cb7bf2f819
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      validations_common/callback_plugins/validation_json.py

+ 1
- 1
validations_common/callback_plugins/validation_json.py View File

@ -171,7 +171,7 @@ class CallbackModule(CallbackBase):
self.simple_results.append(self._val_task(task.name))
self.simple_results[-1]['task']['status'] = "FAILED"
self.simple_results[-1]['task']['hosts'][host.name] = task_result
if 'warnings' in task_result.keys():
if 'warnings' in task_result.keys() and task_result.get('warnings'):
self.simple_results.append(self._val_task(task.name))
self.simple_results[-1]['task']['status'] = "WARNING"
self.simple_results[-1]['task']['hosts'][host.name] = task_result


Loading…
Cancel
Save