1
0
mirror of https://github.com/rancher/os.git synced 2025-05-17 12:29:34 +00:00

Count number of args for ros config set command

This commit is contained in:
Julien Kassar 2017-02-17 14:15:18 -05:00
parent f041ceefc5
commit 1e6d38cbf0

View File

@ -147,6 +147,10 @@ func env2map(env []string) map[string]string {
} }
func configSet(c *cli.Context) error { func configSet(c *cli.Context) error {
if c.NArg() < 2 {
return nil
}
key := c.Args().Get(0) key := c.Args().Get(0)
value := c.Args().Get(1) value := c.Args().Get(1)
if key == "" { if key == "" {