1
0
mirror of https://github.com/rancher/os.git synced 2025-07-07 11:58:38 +00:00

Merge pull request #465 from janeczku/fix-ros-env

Return gracefully when `ros env` is called without argument(s)
This commit is contained in:
Darren Shepherd 2015-08-05 20:50:40 -07:00
commit b6a87cb1c8

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