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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user