"when" condition in handler is not honored

Hi!
I have a "when: condition that works fine in “regular” tasks, but not in a handler . . . is that expected?

So I’m using a notify, then at the end of the handler task I have a when condition. The notification works, but it always triggers, ever when the condition is false.

Here’s the handler:

  • name: restart render
    supervisorctl:
    name: “render”
    state: restarted
    when: “‘render’ in group_names”

Any ideas?

Thanks a lot,
Guy