Merge pull request #10029 from gaqzi/devel

Add filter to turn a string into a UUID
This commit is contained in:
Brian Coca 2015-01-22 14:51:40 -05:00
commit 54c25a101b
3 changed files with 18 additions and 0 deletions

View file

@ -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.