Merge "Fix available roles listing" into stable/rocky

This commit is contained in:
Zuul 2018-09-17 15:21:01 +00:00 committed by Gerrit Code Review
commit 849726a2ca
1 changed files with 1 additions and 1 deletions

View File

@ -1405,7 +1405,7 @@ workflows:
transform_output:
publish:
status: SUCCESS
available_roles: <% let(root => $, roles => yaml_parse($.available_yaml_roles.join("\n"))) -> $roles.where($root.role_tags.toSet().intersect($.get(tags, []).toSet()) or $root.role_tags = null) %>
available_roles: <% let(root => $, roles => yaml_parse($.available_yaml_roles.join("\n"))) -> ($root.role_tags = null and $roles or $roles.where($root.role_tags.toSet().intersect($.get(tags, []).toSet()))) %>
publish-on-error:
status: FAILED
message: <% task().result %>