Track sensitive variable keys to support JSON template writing

Signed-off-by: Brendan Devenney <brendan@devenney.io>
pull/7339/head
Brendan Devenney 7 years ago
parent d8793e3f85
commit 610eecfc99
No known key found for this signature in database
GPG Key ID: 8A043A630C39877E

@ -60,6 +60,7 @@ func (r *rawTemplate) Template() (*Template, error) {
}
for k, rawV := range r.Variables {
var v Variable
v.Key = k
// Variable is required if the value is exactly nil
v.Required = rawV == nil

@ -70,6 +70,7 @@ type Push struct {
// Variable represents a variable within the template
type Variable struct {
Key string
Default string
Required bool
}

Loading…
Cancel
Save