Skip to content

Commit

Permalink
Ensure ansible output is parseable
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Mar 1, 2022
1 parent 15b3419 commit 3f894ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/changelog-fragments.d/236.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Ensure that Ansible calls do not return ANSI escapes, so we can parse them.
[vscode-ansible#373] -- by {user}`ssbarnea`

[vscode-ansible#373]: https://github.com/ansible/vscode-ansible/issues/373
2 changes: 2 additions & 0 deletions src/utils/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export function withInterpreter(

// emulating virtual environment activation script
const envOverride = {
// see https://github.com/ansible/vscode-ansible/issues/373
ANSIBLE_FORCE_COLOR: '0',
VIRTUAL_ENV: virtualEnv,
PATH: `${pathEntry}:${process.env.PATH}`,
};
Expand Down

0 comments on commit 3f894ba

Please sign in to comment.