mirror of
https://github.com/rancher/os.git
synced 2025-09-02 15:24:32 +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()
|
||||
if len(args) == 0 {
|
||||
return
|
||||
}
|
||||
osEnv := os.Environ()
|
||||
|
||||
envMap := make(map[string]string, len(cfg.Rancher.Environment)+len(osEnv))
|
||||
|
Reference in New Issue
Block a user