Merge "Add guard to ensure a mapping has a valid key"

This commit is contained in:
Zuul 2020-09-11 21:33:49 +00:00 committed by Gerrit Code Review
commit befede0ac4
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class ActionModule(ActionBase):
module_args=dict(name=containers),
task_vars=tvars
)
return [c for c in result["containers"]]
return [c for c in result["containers"] if "containers" in result]
@tenacity.retry(
reraise=True,