I confirm this. Running any Ansible playbook displays the following warning on every task which is quite annoying:
/usr/lib/python3/dist-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
if x is 0 or x is 1:
/usr/lib/python3/dist-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
if x is 0 or x is 1:
/usr/lib/python3/dist-packages/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif y is 0 or y is 1:
/usr/lib/python3/dist-packages/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif y is 0 or y is 1:
/usr/lib/python3/dist-packages/jmespath/visitor.py:260: SyntaxWarning: "is" with a literal. Did you mean "=="?
if original_result is 0:
I confirm this. Running any Ansible playbook displays the following warning on every task which is quite annoying:
/usr/lib/ python3/ dist-packages/ jmespath/ visitor. py:32: SyntaxWarning: "is" with a literal. Did you mean "=="? python3/ dist-packages/ jmespath/ visitor. py:32: SyntaxWarning: "is" with a literal. Did you mean "=="? python3/ dist-packages/ jmespath/ visitor. py:34: SyntaxWarning: "is" with a literal. Did you mean "=="? python3/ dist-packages/ jmespath/ visitor. py:34: SyntaxWarning: "is" with a literal. Did you mean "=="? python3/ dist-packages/ jmespath/ visitor. py:260: SyntaxWarning: "is" with a literal. Did you mean "=="?
if x is 0 or x is 1:
/usr/lib/
if x is 0 or x is 1:
/usr/lib/
elif y is 0 or y is 1:
/usr/lib/
elif y is 0 or y is 1:
/usr/lib/
if original_result is 0:
The system is Ubuntu 20.04 LTS on amd64.
$ apt-cache policy ansible python3-jmespath www.nic. funet.fi/ pub/mirrors/ archive. ubuntu. com focal/universe amd64 Packages www.nic. funet.fi/ pub/mirrors/ archive. ubuntu. com focal/universe i386 Packages dpkg/status www.nic. funet.fi/ pub/mirrors/ archive. ubuntu. com focal/main amd64 Packages www.nic. funet.fi/ pub/mirrors/ archive. ubuntu. com focal/main i386 Packages dpkg/status
ansible:
Installed: 2.9.6+dfsg-1
Candidate: 2.9.6+dfsg-1
Version table:
*** 2.9.6+dfsg-1 500
500 http://
500 http://
100 /var/lib/
python3-jmespath:
Installed: 0.9.4-2
Candidate: 0.9.4-2
Version table:
*** 0.9.4-2 500
500 http://
500 http://
100 /var/lib/