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

Warning messages with task configure_swap #287

Open
marde16 opened this issue Jun 27, 2023 · 1 comment
Open

Warning messages with task configure_swap #287

marde16 opened this issue Jun 27, 2023 · 1 comment

Comments

@marde16
Copy link
Contributor

marde16 commented Jun 27, 2023

I get two warning messages when task configure_swap runs:

[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found:
swap_file_exists.stat.exists and swap_enabled.rc > 0 and (not swap_enabled or (swap_enabled and
swap_file_exists.stat.size != ({{ __swapfile_size }} * 0.75 * 1024 * 1024)))

when: >
swap_file_exists.stat.exists
and swap_enabled.rc > 0
and (not swap_enabled
or (swap_enabled and swap_file_exists.stat.size != ({{ __swapfile_size }} * 0.75 * 1024 * 1024)))

[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found:
not swap_file_exists.stat.exists or swap_file_exists.stat.size != ({{ __swapfile_size }} * 0.75 * 1024 * 1024)

when: >
not swap_file_exists.stat.exists
or swap_file_exists.stat.size != ({{ __swapfile_size }} * 0.75 * 1024 * 1024)

@nitinjagjivan
Copy link
Collaborator

nitinjagjivan commented Jun 28, 2023

Acknowledged.
We will remove the Jinja2 templating delimiter ({{ }} from the conditional statement. For now, the warning can be ignored. An internal WI has been created.

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

No branches or pull requests

2 participants