1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 07:15:41 +00:00

Fixes runtime error when ros env is called without argument(s)

This commit is contained in:
Jan Broer
2015-08-06 01:11:22 +02:00
parent 8c9fa7ba2f
commit 2b1bf67c86

View File

@@ -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))