mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 08:17:37 +00:00
runtime/cli: fix TestMainBeforeSubCommandsLoadConfigurationFail failure
Now that it is `kata-config`... Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
8e71c4fc7a
commit
9b689ea1d7
@ -86,8 +86,8 @@ var defaultErrorFile = os.Stderr
|
|||||||
// runtimeFlags is the list of supported global command-line flags
|
// runtimeFlags is the list of supported global command-line flags
|
||||||
var runtimeFlags = []cli.Flag{
|
var runtimeFlags = []cli.Flag{
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "config, kata-config",
|
Name: "config, kata-config",
|
||||||
Usage: project + " config file path",
|
Usage: project + " config file path",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "log",
|
Name: "log",
|
||||||
@ -110,8 +110,8 @@ var runtimeFlags = []cli.Flag{
|
|||||||
Usage: "ignore cgroup permission errors ('true', 'false', or 'auto')",
|
Usage: "ignore cgroup permission errors ('true', 'false', or 'auto')",
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "show-default-config-paths, kata-show-default-config-paths",
|
Name: "show-default-config-paths, kata-show-default-config-paths",
|
||||||
Usage: "show config file paths that will be checked for (in order)",
|
Usage: "show config file paths that will be checked for (in order)",
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "systemd-cgroup",
|
Name: "systemd-cgroup",
|
||||||
@ -322,7 +322,7 @@ func beforeSubcommands(c *cli.Context) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
configFile, runtimeConfig, err = katautils.LoadConfiguration(c.GlobalString("config"), ignoreConfigLogs, false)
|
configFile, runtimeConfig, err = katautils.LoadConfiguration(c.GlobalString("kata-config"), ignoreConfigLogs, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fatal(err)
|
fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user