mirror of
https://github.com/rancher/os.git
synced 2025-09-03 07:44:21 +00:00
Fixes runtime error when ros env
is called without argument(s)
This commit is contained in:
@@ -18,6 +18,9 @@ func envAction(c *cli.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
args := c.Args()
|
args := c.Args()
|
||||||
|
if len(args) == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
osEnv := os.Environ()
|
osEnv := os.Environ()
|
||||||
|
|
||||||
envMap := make(map[string]string, len(cfg.Rancher.Environment)+len(osEnv))
|
envMap := make(map[string]string, len(cfg.Rancher.Environment)+len(osEnv))
|
||||||
|
Reference in New Issue
Block a user