Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 7, Page 149 - Assertions tests with assert module fails #456

Closed
MrPOC opened this issue Feb 7, 2022 · 1 comment
Closed

Chapter 7, Page 149 - Assertions tests with assert module fails #456

MrPOC opened this issue Feb 7, 2022 · 1 comment
Labels

Comments

@MrPOC
Copy link

MrPOC commented Feb 7, 2022

On page 149, in chapter 7, the first and second playbook presented are failing due to invalid Jinja syntax.
When trying to compare the my_color_choice with the string literal 'blue' (and '#0000ff' in the second playbook) you can't just write
my_color_choice is 'blue'
You could either replace the "is" with "==" or write my_color_choice is eq 'blue' or my_color_choice is equalto 'blue'
Hope it helps !

@geerlingguy
Copy link
Owner

Right you are! I've fixed this in the latest version of the book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants