mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
time_filter: allow 0 to return 0 (#4612)
* time_filter: allow 0 to return 0 * add changelog * Update changelogs/fragments/4612-time_filter_zero.yml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
8d37591605
commit
dd9afc09a8
3 changed files with 14 additions and 0 deletions
|
@ -4,6 +4,13 @@
|
|||
# and should not be used as examples of how to write Ansible roles #
|
||||
####################################################################
|
||||
|
||||
- name: test zero is 0
|
||||
assert:
|
||||
that:
|
||||
- "('0' | community.general.to_milliseconds) == 0"
|
||||
- "('0' | community.general.to_seconds) == 0"
|
||||
- "('0' | community.general.to_minutes) == 0"
|
||||
|
||||
- name: test to_milliseconds filter
|
||||
assert:
|
||||
that:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue