1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

config/types.go: add "" to field tag

The field tag format accepted is[1]:
    `(...) yaml:"[<key>][,<flag1>[,<flag2>]]" (...)`
so we should add double quotation marks for the
filed tag format.

[1]: https://godoc.org/gopkg.in/yaml.v2

Signed-off-by: Wang Long <long.wanglong@huawei.com>
This commit is contained in:
Wang Long
2015-10-31 23:54:56 +08:00
parent 60ef1d4a60
commit dc33d84a48

View File

@@ -52,12 +52,12 @@ type ContainerConfig struct {
Cmd string `yaml:"run,omitempty"`
MigrateVolumes bool `yaml:"migrate_volumes,omitempty"`
ReloadConfig bool `yaml:"reload_config,omitempty"`
CreateOnly bool `yaml:create_only,omitempty`
Service *project.ServiceConfig `yaml:service,omitempty`
CreateOnly bool `yaml:"create_only,omitempty"`
Service *project.ServiceConfig `yaml:"service,omitempty"`
}
type Repository struct {
Url string `yaml:url,omitempty`
Url string `yaml:"url,omitempty"`
}
type Repositories map[string]Repository