From 7d20ff7cacac9a13517663705f1f27477d58a032 Mon Sep 17 00:00:00 2001 From: Joe Louthan Date: Tue, 19 Jan 2021 00:00:14 -0600 Subject: [PATCH] Update tss.py - multiline for an example (#1639) * Update tss.py - multiline for an example Extended line runs past the side of the browser window * Moved multiline to after the msg. Cannot believe I missed that again. * Updated tss.py Using > as multiline joiner with spaces --- plugins/lookup/tss.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/lookup/tss.py b/plugins/lookup/tss.py index 31818a411c..9e3688c25a 100644 --- a/plugins/lookup/tss.py +++ b/plugins/lookup/tss.py @@ -75,7 +75,11 @@ EXAMPLES = r""" vars: secret: "{{ lookup('community.general.tss', 1) }}" tasks: - - ansible.builtin.debug: msg="the password is {{ (secret['items'] | items2dict(key_name='slug', value_name='itemValue'))['password'] }}" + - ansible.builtin.debug: + msg: > + the password is {{(secret['items'] + | items2dict(key_name='slug', + value_name='itemValue'))['password']}} """ from ansible.errors import AnsibleError, AnsibleOptionsError