cmd/crio: fix reading insecure-registry flags

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-06-23 16:40:27 +02:00
parent efb71ae74e
commit 78e2fd3d5e
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

View file

@ -63,7 +63,7 @@ func mergeConfig(config *server.Config, ctx *cli.Context) error {
config.StorageOptions = ctx.GlobalStringSlice("storage-opt") config.StorageOptions = ctx.GlobalStringSlice("storage-opt")
} }
if ctx.GlobalIsSet("insecure-registry") { if ctx.GlobalIsSet("insecure-registry") {
config.InsecureRegistries = ctx.GlobalStringSlice("insecure-registries") config.InsecureRegistries = ctx.GlobalStringSlice("insecure-registry")
} }
if ctx.GlobalIsSet("default-transport") { if ctx.GlobalIsSet("default-transport") {
config.DefaultTransport = ctx.GlobalString("default-transport") config.DefaultTransport = ctx.GlobalString("default-transport")