#3045 fix DEPRECATED Action signature erorr

This commit is contained in:
Unknwon 2016-05-12 14:32:28 -04:00
parent 8a2347592d
commit 7826eae452
10 changed files with 30 additions and 18 deletions

View file

@ -67,7 +67,7 @@ func pemBlockForKey(priv interface{}) *pem.Block {
}
}
func runCert(ctx *cli.Context) {
func runCert(ctx *cli.Context) error {
if len(ctx.String("host")) == 0 {
log.Fatal("Missing required --host parameter")
}
@ -158,4 +158,6 @@ func runCert(ctx *cli.Context) {
pem.Encode(keyOut, pemBlockForKey(priv))
keyOut.Close()
log.Println("Written key.pem")
return nil
}