diff options
author | Simon Westphahl <simon.westphahl@bmw.de> | 2018-10-02 08:34:17 +0200 |
---|---|---|
committer | Simon Westphahl <simon.westphahl@bmw.de> | 2018-10-02 10:16:31 +0200 |
commit | 5def8720dc1c840000f21e91f4437d1b5f52a993 (patch) | |
tree | 848edddb18d3f2728eb52946030743ea40383576 /zuul/ansible | |
parent | 3dba813c643ec8f4b3323c2a09c6aecf8ad4d338 (diff) | |
download | zuul-5def8720dc1c840000f21e91f4437d1b5f52a993.tar.gz |
Add role path to JSON result in callback plugin
Having the role path is sometimes needed for debugging in case there are
multiple roles with the same name.
Change-Id: Icbd682a6cd84f2bcbaf07625f601316ffd2ea4fc
Diffstat (limited to 'zuul/ansible')
-rw-r--r-- | zuul/ansible/callback/zuul_json.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zuul/ansible/callback/zuul_json.py b/zuul/ansible/callback/zuul_json.py index 818fa6d0b..2b574b648 100644 --- a/zuul/ansible/callback/zuul_json.py +++ b/zuul/ansible/callback/zuul_json.py @@ -119,7 +119,8 @@ class CallbackModule(CallbackBase): if task._role: data['role'] = { 'name': task._role.get_name(), - 'id': str(task._role._uuid) + 'id': str(task._role._uuid), + 'path': task._role._role_path, } return data |