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

terraform plan -no-color outputs color #250

Closed
nikhilv opened this issue Aug 31, 2014 · 2 comments
Closed

terraform plan -no-color outputs color #250

nikhilv opened this issue Aug 31, 2014 · 2 comments

Comments

@nikhilv
Copy link

nikhilv commented Aug 31, 2014

To reproduce:
0) Install terraform v0.2.0 (add to path)

  1. Create example.tf file as described here: http://www.terraform.io/intro/getting-started/build.html
  2. Run terraform plan -no-color

EXPECTED:
output does not have color
ACTUAL:
output has color (Notice '[0m, [32m')

c:\vagrantWorkspace\centos6.5\terraformTest>terraform plan -no-color
Refreshing Terraform state prior to plan...


The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
will be created (or destroyed and then created if an existing resource
exists), yellow resources are being changed in-place, and red resources
will be destroyed.

Note: You didn't specify an "-out" parameter to save this plan, so when
"apply" is called, Terraform can't guarantee this is what will execute.

←[32m+ aws_instance.example
←[0m    ami:               "" => "ami-408c7f28"
    availability_zone: "" => "<computed>"
    instance_type:     "" => "t1.micro"
    key_name:          "" => "<computed>"
    private_dns:       "" => "<computed>"
    private_ip:        "" => "<computed>"
    public_dns:        "" => "<computed>"
    public_ip:         "" => "<computed>"
    security_groups.#: "" => "<computed>"
    subnet_id:         "" => "<computed>"
←[0m
←[0m

Tried this both on win 8 and centos 6.5. Problem reproducible on both platforms.

@mitchellh
Copy link
Contributor

Reproduced. Taking a look.

@mitchellh
Copy link
Contributor

Fixed

@ghost ghost locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants