don't auto-coerce boolean-like extra_vars for credential injection

ansible itself already does this for you (albeit, with its own set of
quirks): https://github.com/ansible/ansible/issues/11905

see: #6900
This commit is contained in:
Ryan Petrello
2017-07-07 16:09:47 -04:00
parent 3ae9578725
commit 7f286b50b8
2 changed files with 2 additions and 9 deletions

View File

@@ -915,7 +915,7 @@ class TestJobCredentials(TestJobExecution):
assert self.run_pexpect.call_count == 1
call_args, _ = self.run_pexpect.call_args_list[0]
args, cwd, env, stdout = call_args
assert '-e {"turbo_button": true}' in ' '.join(args)
assert '-e {"turbo_button": "True"}' in ' '.join(args)
def test_custom_environment_injectors_with_complicated_boolean_template(self):
some_cloud = CredentialType(