From 98c19e26ab29b5246d7815eff4640de1422960c8 Mon Sep 17 00:00:00 2001 From: CMGS Date: Thu, 5 Oct 2017 01:18:00 +0800 Subject: [PATCH] missing force --- commands/deploy.go | 1 + commands/remove.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/deploy.go b/commands/deploy.go index a8d4a62..87b57de 100644 --- a/commands/deploy.go +++ b/commands/deploy.go @@ -99,6 +99,7 @@ func generateDeployOpts(data []byte, pod, entry, image, network string, cpu floa if entrypoint.Hook != nil { hook.AfterStart = entrypoint.Hook.AfterStart hook.BeforeStop = entrypoint.Hook.BeforeStop + hook.Force = entrypoint.Hook.Force } healthCheck := &pb.HealthCheckOptions{} diff --git a/commands/remove.go b/commands/remove.go index b32a73f..7169d54 100644 --- a/commands/remove.go +++ b/commands/remove.go @@ -45,9 +45,9 @@ func remove(c *cli.Context, conn *grpc.ClientConn) { if msg.Success { log.Infof("[Remove] Success %s", msg.Id[:12]) + log.Info(msg.Message) } else { log.Errorf("[Remove] Failed %s", msg.Message) } - log.Info(msg.Message) } }