]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/hashicorp/terraform/terraform/ui_input_prefix.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / hashicorp / terraform / terraform / ui_input_prefix.go
index 2207d1d0fd1b1e6154354af189d0a900069b1821..b5d32b1e85d54035655d3409c6dddae777d0f5c4 100644 (file)
@@ -1,6 +1,7 @@
 package terraform
 
 import (
+       "context"
        "fmt"
 )
 
@@ -12,8 +13,8 @@ type PrefixUIInput struct {
        UIInput     UIInput
 }
 
-func (i *PrefixUIInput) Input(opts *InputOpts) (string, error) {
+func (i *PrefixUIInput) Input(ctx context.Context, opts *InputOpts) (string, error) {
        opts.Id = fmt.Sprintf("%s.%s", i.IdPrefix, opts.Id)
        opts.Query = fmt.Sprintf("%s%s", i.QueryPrefix, opts.Query)
-       return i.UIInput.Input(opts)
+       return i.UIInput.Input(ctx, opts)
 }