Test for empty dict

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.