On 08. juni 2017 15:21, Ed Greenberg wrote:
I have this: TASK [debug] ******************************************************************* ok: [localhost] => { "changed": false, "msg": { "changed": false, "volume": {} } }I'd like to test for this condition, where volume is an empty dict. I tried when volume == {} and, of course, got an error. Any ideas?
Since you have not provided the error message I need to guess, you are missing the colon after when.
-- Kai Stian Olstad -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fdd0901c-f607-daaf-f940-f1c491e74776%40olstad.com. For more options, visit https://groups.google.com/d/optout.
