Remove omitempty from toml tags

The encoder only support changing the name of the key.

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2017-09-14 20:49:22 -07:00
parent 0f6d1d21b2
commit f2d1459929
No known key found for this signature in database
GPG Key ID: 40CF16616B361216
2 changed files with 6 additions and 6 deletions

View File

@ -67,15 +67,15 @@ var _ = (runtime.Runtime)(&Runtime{})
type Config struct {
// Shim is a path or name of binary implementing the Shim GRPC API
Shim string `toml:"shim,omitempty"`
Shim string `toml:"shim"`
// Runtime is a path or name of an OCI runtime used by the shim
Runtime string `toml:"runtime,omitempty"`
Runtime string `toml:"runtime"`
// RuntimeRoot is the path that shall be used by the OCI runtime for its data
RuntimeRoot string `toml:"runtime_root,omitempty"`
RuntimeRoot string `toml:"runtime_root"`
// NoShim calls runc directly from within the pkg
NoShim bool `toml:"no_shim,omitempty"`
NoShim bool `toml:"no_shim"`
// Debug enable debug on the shim
ShimDebug bool `toml:"shim_debug,omitempty"`
ShimDebug bool `toml:"shim_debug"`
}
func New(ic *plugin.InitContext) (interface{}, error) {

View File

@ -19,7 +19,7 @@ type config struct {
// respected for which is choosen. Each differ should return the same
// correct output, allowing any ordering to be used to prefer
// more optimimal implementations.
Order []string `toml:"default,omitempty"`
Order []string `toml:"default"`
}
func init() {