Skip to content
New issue

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

Provide a variable for turning off -input=false #34

Open
jason-johnson opened this issue Jan 29, 2020 · 2 comments
Open

Provide a variable for turning off -input=false #34

jason-johnson opened this issue Jan 29, 2020 · 2 comments

Comments

@jason-johnson
Copy link

jason-johnson commented Jan 29, 2020

I see in the code that -input=false is turned off for validate and workspace but in my case I need it removed so I can call terraform output. Rather than adding all commands that don't take input, can we just have a flag variable that allows us to turn it off?

@ghost
Copy link

ghost commented Mar 4, 2020

Hi,

I've exactly the same problem.

When I execute the terraform task with this arguments "output myvar", the task sends an error because these defaults arguments are automatically added to the command line : "-input=false -no-color"

I can reproduce the same behavior with a simple command line test.
The "input" arguments should not be used with the "output" action.

For your information, I think that the problem comes from this line :

if ($additionalArguments.Trim() -like "output*") {

@pgroene
Copy link
Contributor

pgroene commented May 15, 2020

Thank you for reporting this, I do not have time to fix and test this at them moment. I'll accept a PR which fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants