1
0
mirror of https://github.com/rancher/os.git synced 2025-09-15 22:49:08 +00:00

Update codegangsta/cli action return signature

This commit is contained in:
Josh Curl
2016-05-16 20:36:08 -07:00
parent b2ab4d0c38
commit c18cd26e78
10 changed files with 63 additions and 26 deletions

View File

@@ -48,7 +48,7 @@ var installCommand = cli.Command{
},
}
func installAction(c *cli.Context) {
func installAction(c *cli.Context) error {
if c.Args().Present() {
log.Fatalf("invalid arguments %v", c.Args())
}
@@ -89,6 +89,8 @@ func installAction(c *cli.Context) {
if err := runInstall(image, installType, cloudConfig, device, force, reboot); err != nil {
log.WithFields(log.Fields{"err": err}).Fatal("Failed to run install")
}
return nil
}
func runInstall(image, installType, cloudConfig, device string, force, reboot bool) error {