HCL2 inspect remove debug values
This commit is contained in:
parent
9eaa2e17f7
commit
91c5a4613c
|
@ -19,7 +19,7 @@ func Test_commands(t *testing.T) {
|
|||
|
||||
> input-variables:
|
||||
|
||||
var.fruit: "banana" [debug: {Type:cty.String,CmdValue:banana,VarfileValue:null,EnvValue:null,DefaultValue:null}]
|
||||
var.fruit: "banana"
|
||||
|
||||
> local-variables:
|
||||
|
||||
|
@ -46,7 +46,7 @@ local.fruit: "banana"
|
|||
|
||||
> input-variables:
|
||||
|
||||
var.fruit: "peach" [debug: {Type:cty.String,CmdValue:peach,VarfileValue:null,EnvValue:null,DefaultValue:banana}]
|
||||
var.fruit: "peach"
|
||||
|
||||
> local-variables:
|
||||
|
||||
|
@ -58,7 +58,7 @@ var.fruit: "peach" [debug: {Type:cty.String,CmdValue:peach,VarfileValue:null,Env
|
|||
|
||||
> input-variables:
|
||||
|
||||
var.fruit: "peach" [debug: {Type:cty.String,CmdValue:peach,VarfileValue:null,EnvValue:null,DefaultValue:banana}]
|
||||
var.fruit: "peach"
|
||||
|
||||
> local-variables:
|
||||
|
||||
|
|
|
@ -462,7 +462,7 @@ func (p *PackerConfig) printVariables() string {
|
|||
out.WriteString("> input-variables:\n\n")
|
||||
for _, v := range p.InputVariables {
|
||||
val, _ := v.Value()
|
||||
fmt.Fprintf(out, "var.%s: %q [debug: %#v]\n", v.Name, PrintableCtyValue(val), v)
|
||||
fmt.Fprintf(out, "var.%s: %q\n", v.Name, PrintableCtyValue(val))
|
||||
}
|
||||
out.WriteString("\n> local-variables:\n\n")
|
||||
for _, v := range p.LocalVariables {
|
||||
|
|
Loading…
Reference in New Issue