From e55d9cb072a8e57576f28b2b8d87869e2fe10588 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sun, 26 Apr 2015 13:23:10 -0400 Subject: [PATCH] Reporting success of each machine when removing multiples Signed-off-by: Dave Henderson --- commands/rm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/rm.go b/commands/rm.go index 75ec1c133d..0d181fb8ba 100644 --- a/commands/rm.go +++ b/commands/rm.go @@ -34,10 +34,11 @@ func cmdRm(c *cli.Context) { if err := mcn.Remove(host, force); err != nil { log.Errorf("Error removing machine %s: %s", host, err) isError = true + } else { + log.Infof("Successfully removed %s", host) } } if isError { log.Fatal("There was an error removing a machine. To force remove it, pass the -f option. Warning: this might leave it running on the provider.") } - log.Print("The machine was successfully removed.") }