terraform: Make output more machine-like
This commit is contained in:
parent
63453f3f1a
commit
9bb26f7695
|
@ -572,7 +572,7 @@ func (c *walkContext) inputWalkFn() depgraph.WalkFunc {
|
|||
// Wrap the input into a namespace
|
||||
input := &PrefixUIInput{
|
||||
IdPrefix: fmt.Sprintf("provider.%s", rn.ID),
|
||||
QueryPrefix: fmt.Sprintf("Provider %s", rn.ID),
|
||||
QueryPrefix: fmt.Sprintf("provider.%s.", rn.ID),
|
||||
UIInput: c.Context.uiInput,
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,6 @@ type PrefixUIInput struct {
|
|||
|
||||
func (i *PrefixUIInput) Input(opts *InputOpts) (string, error) {
|
||||
opts.Id = fmt.Sprintf("%s.%s", i.IdPrefix, opts.Id)
|
||||
opts.Query = fmt.Sprintf("%s %s", i.QueryPrefix, opts.Query)
|
||||
opts.Query = fmt.Sprintf("%s%s", i.QueryPrefix, opts.Query)
|
||||
return i.UIInput.Input(opts)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue