mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Break apart a looped dependency to show a warning when parsing playbooks
Display a warning when a dict key is overwritten by pyyaml Fixes #12888
This commit is contained in:
@@ -22,7 +22,7 @@ __metaclass__ = type
|
||||
import os
|
||||
|
||||
from ansible.errors import AnsibleParserError
|
||||
from ansible.parsing import DataLoader
|
||||
from ansible.parsing.dataloader import DataLoader
|
||||
|
||||
class DictDataLoader(DataLoader):
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ from ansible.compat.tests import unittest
|
||||
from ansible.compat.tests.mock import patch, mock_open
|
||||
from ansible.errors import AnsibleParserError
|
||||
|
||||
from ansible.parsing import DataLoader
|
||||
from ansible.parsing.dataloader import DataLoader
|
||||
from ansible.parsing.yaml.objects import AnsibleMapping
|
||||
|
||||
class TestDataLoader(unittest.TestCase):
|
||||
|
||||
@@ -23,7 +23,7 @@ __metaclass__ = type
|
||||
from nose import tools
|
||||
from ansible.compat.tests import unittest
|
||||
|
||||
from ansible.parsing.splitter import unquote
|
||||
from ansible.parsing.quoting import unquote
|
||||
|
||||
|
||||
# Tests using nose's test generators cannot use unittest base class.
|
||||
|
||||
Reference in New Issue
Block a user