mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Allow tags to be templated from a variable (#49833)
* Allow tags to be templated from a variable. Fixes #49825 * Restore _load_tags to ensure we do csv tag splitting * Add tests for csv tags and templated tags * evaluate_tags doesn't need to accept strings, because _load_tags handles this
This commit is contained in:
@@ -98,8 +98,5 @@ class TestTaggable(unittest.TestCase):
|
||||
def test_evaluate_tags_accepts_lists(self):
|
||||
self.assert_evaluate_equal(True, ['tag1', 'tag2'], ['tag2'], [])
|
||||
|
||||
def test_evaluate_tags_accepts_strings(self):
|
||||
self.assert_evaluate_equal(True, 'tag1,tag2', ['tag2'], [])
|
||||
|
||||
def test_evaluate_tags_with_repeated_tags(self):
|
||||
self.assert_evaluate_equal(False, ['tag', 'tag'], [], ['tag'])
|
||||
|
||||
Reference in New Issue
Block a user