terraform: Make output more machine-like

This commit is contained in:
Mitchell Hashimoto 2014-09-29 12:52:48 -07:00
parent 63453f3f1a
commit 9bb26f7695
2 changed files with 2 additions and 2 deletions

View File

@ -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,
}

View File

@ -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)
}