We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
> result = host.ansible( "win_shell", f"Get-Content -Path '{file_path}' | Out-String", check=False, become=True, become_user="vlan8user", become_method="runas", ) test_infra.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ venv/lib/python3.12/site-packages/testinfra/modules/ansible.py:43: in wrapper return func(self, *args, **kwargs) venv/lib/python3.12/site-packages/testinfra/modules/ansible.py:110: in __call__ result = self._host.backend.run_ansible( venv/lib/python3.12/site-packages/testinfra/backend/ansible.py:72: in run_ansible result = self.ansible_runner.run_module( venv/lib/python3.12/site-packages/testinfra/utils/ansible_runner.py:411: in run_module with open(fpath, "r", encoding=get_encoding()) as f: venv/lib/python3.12/site-packages/testinfra/backend/ansible.py:70: in get_encoding return self.encoding venv/lib/python3.12/site-packages/testinfra/backend/base.py:303: in encoding self._encoding = self.get_encoding() venv/lib/python3.12/site-packages/testinfra/backend/base.py:283: in get_encoding cmd = self.run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <testinfra.backend.ansible.AnsibleBackend object at 0x7f0793cdf9e0> command = "python3 -c 'import locale;print(locale.getpreferredencoding())'" args = ('python3',), kwargs = {'encoding': None} out = {'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python3'}, 'changed': False, 'module_stderr': 'Exception...Operation: (:) [], RuntimeException\r\n + FullyQualifiedErrorId : BadExpression\r\n \r\n', 'module_stdout': '', ...} def run( ```
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: