mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-19 03:10:22 -07:00
Don't force down ansible facts back to setup, the setup module won't like parsing them on input and that
data is already there.
This commit is contained in:
parent
5fa3d9b148
commit
30d06dbcea
2 changed files with 2 additions and 1 deletions
|
@ -229,7 +229,7 @@ class Runner(object):
|
||||||
|
|
||||||
# TODO: keep this as a dict through the whole path to simplify this code
|
# TODO: keep this as a dict through the whole path to simplify this code
|
||||||
for (k,v) in inject.iteritems():
|
for (k,v) in inject.iteritems():
|
||||||
if not k.startswith('facter_') and not k.startswith('ohai_'):
|
if not k.startswith('facter_') and not k.startswith('ohai_') and not k.startswith('ansible_'):
|
||||||
if not is_dict:
|
if not is_dict:
|
||||||
if str(v).find(" ") != -1:
|
if str(v).find(" ") != -1:
|
||||||
v = "\"%s\"" % v
|
v = "\"%s\"" % v
|
||||||
|
|
|
@ -178,6 +178,7 @@ class TestRunner(unittest.TestCase):
|
||||||
# almost every time so changed is always true, this just tests that
|
# almost every time so changed is always true, this just tests that
|
||||||
# rewriting the file is ok
|
# rewriting the file is ok
|
||||||
result = self._run('setup', [ "metadata=%s" % output, "a=2", "b=3", "c=4" ])
|
result = self._run('setup', [ "metadata=%s" % output, "a=2", "b=3", "c=4" ])
|
||||||
|
print "RAW RESULT=%s" % result
|
||||||
assert 'md5sum' in result
|
assert 'md5sum' in result
|
||||||
|
|
||||||
def test_async(self):
|
def test_async(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue