mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-02 14:04:22 +01:00
This is a hotfix to fix https://github.com/kata-containers/runtime/issues/1185 Signed-off-by: Julio Montes <julio.montes@intel.com>
23 lines
782 B
Diff
23 lines
782 B
Diff
diff --git a/cli/main.go b/cli/main.go
|
|
index a01a02dc5..a021a0a77 100644
|
|
--- a/cli/main.go
|
|
+++ b/cli/main.go
|
|
@@ -250,6 +250,8 @@ func beforeSubcommands(c *cli.Context) error {
|
|
var runtimeConfig oci.RuntimeConfig
|
|
var err error
|
|
|
|
+ katautils.SetConfigOptions(name, defaultRuntimeConfiguration, defaultSysConfRuntimeConfiguration)
|
|
+
|
|
handleShowConfig(c)
|
|
|
|
if userWantsUsage(c) || (c.NArg() == 1 && (c.Args()[0] == checkCmd)) {
|
|
@@ -302,8 +304,6 @@ func beforeSubcommands(c *cli.Context) error {
|
|
ignoreLogging = true
|
|
}
|
|
|
|
- katautils.SetConfigOptions(name, defaultRuntimeConfiguration, defaultSysConfRuntimeConfiguration)
|
|
-
|
|
configFile, runtimeConfig, err = katautils.LoadConfiguration(c.GlobalString(configFilePathOption), ignoreLogging, false)
|
|
if err != nil {
|
|
fatal(err)
|