Fix wrong json name for Key field

This commit is contained in:
Tim Hockin 2014-07-02 10:30:27 -07:00
parent 53a51185c6
commit 48074d4ae7

View File

@ -95,7 +95,7 @@ type EnvVar struct {
// Exactly one of the following must be set. If both are set, prefer Name.
// DEPRECATED: EnvVar.Key will be removed in a future version of the API.
Name string `yaml:"name" json:"name"`
Key string `yaml:"key,omitempty" json:"name,omitempty"`
Key string `yaml:"key,omitempty" json:"key,omitempty"`
// Optional: defaults to "".
Value string `yaml:"value,omitempty" json:"value,omitempty"`
}