# when: behaviour changed in 1.3

**URL:** <https://forum.ansible.com/t/when-behaviour-changed-in-1-3/13206>\
**Category:** Ansible Project\
**Created:** [July 27, 2013, 11:14am UTC](https://forum.ansible.com/t/when-behaviour-changed-in-1-3/13206 "2013-07-27T11:14:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frans\_Kuipers](https://avatars.discourse-cdn.com/v4/letter/f/94ad74/32.png) [@Frans\_Kuipers](https://forum.ansible.com/u/Frans_Kuipers)\
**Post date:** [July 27, 2013, 11:14am UTC](https://forum.ansible.com/t/when-behaviour-changed-in-1-3/13206/1 "2013-07-27T11:14:57Z")

</div>

This works in 1.2.2

> * * *
> 
> - hosts: lh
> 
> vars:
> 
> with\_echo: True
> 
> tasks:
> 
> - debug: msg=“This works in 1.2.2”
> 
> when: with\_echo

Same playbook in 1.3 gives me

TASK: [debug msg=“This works in 1.2.2”] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [127.0.0.1] =\> Traceback (most recent call last):  
File “/usr/local/lib/python2.7/dist-packages/ansible/runner/ **init**.py”, line 367, in \_executor  
exec\_rc = self.\_executor\_internal(host, new\_stdin)  
File “/usr/local/lib/python2.7/dist-packages/ansible/runner/ **init**.py”, line 451, in \_executor\_internal  
return self.\_executor\_internal\_inner(host, self.module\_name, self.module\_args, inject, port, complex\_args=complex\_args)  
File “/usr/local/lib/python2.7/dist-packages/ansible/runner/ **init**.py”, line 532, in \_executor\_internal\_inner  
if not utils.check\_conditional(cond, self.basedir, inject, fail\_on\_undefined=self.error\_on\_undefined\_vars):  
File “/usr/local/lib/python2.7/dist-packages/ansible/utils/ **init**.py”, line 167, in check\_conditional  
presented = “{% if " + conditional + " %} True {% else %} False {% endif %}”  
TypeError: cannot concatenate ‘str’ and ‘bool’ objects

How can I do this logic in 1.3?

– Frans

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [July 27, 2013, 2:44pm UTC](https://forum.ansible.com/t/when-behaviour-changed-in-1-3/13206/2 "2013-07-27T14:44:15Z")

</div>

I have an outstanding pull request to deal with this on the development branch.

It will be tested/merged very soon, though I had some reservations about how it handled Unicode so I didn’t immediately merge it (needed further testing).

I believe

with\_echo == True

is functional as a temporary fix.
