Merge pull request #339 from thockin/valid8

Fix wrong json name for Key field
This commit is contained in:
Daniel Smith 2014-07-02 10:31:46 -07:00
commit 1796598302

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"`
}