mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Merge pull request #10029 from gaqzi/devel
Add filter to turn a string into a UUID
This commit is contained in:
commit
54c25a101b
3 changed files with 18 additions and 0 deletions
|
@ -131,6 +131,11 @@ class TestFilters(unittest.TestCase):
|
|||
'a\\1')
|
||||
assert a == 'ansible'
|
||||
|
||||
def test_to_uuid(self):
|
||||
a = ansible.runner.filter_plugins.core.to_uuid('example.com')
|
||||
|
||||
assert a == 'ae780c3a-a3ab-53c2-bfb4-098da300b3fe'
|
||||
|
||||
#def test_filters(self):
|
||||
|
||||
# this test is pretty low level using a playbook, hence I am disabling it for now -- MPD.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue