From d410b4b78c93b7ee255fcf42581bc4cd602fa5fa Mon Sep 17 00:00:00 2001 From: Luke Roberts Date: Wed, 25 Mar 2015 21:00:29 -0700 Subject: [PATCH 1/3] indicate a successful removal of a machine Signed-off-by: Luke Roberts --- commands.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands.go b/commands.go index 7c93ecbd9f..6d9768f531 100644 --- a/commands.go +++ b/commands.go @@ -653,6 +653,8 @@ func cmdRm(c *cli.Context) { } 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.") + } else { + log.Print("The machine was successfully removed") } } From 01f12a6ea0fd9c97a67e350d808036bbe090d0f9 Mon Sep 17 00:00:00 2001 From: Luke Roberts Date: Wed, 25 Mar 2015 21:03:04 -0700 Subject: [PATCH 2/3] period for consistency Signed-off-by: Luke Roberts --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 6d9768f531..8e45d659b4 100644 --- a/commands.go +++ b/commands.go @@ -654,7 +654,7 @@ func cmdRm(c *cli.Context) { 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.") } else { - log.Print("The machine was successfully removed") + log.Print("The machine was successfully removed.") } } From 4fd104c530c981dc4fff8d8df92522f8f258c8d0 Mon Sep 17 00:00:00 2001 From: Luke Roberts Date: Fri, 27 Mar 2015 13:09:05 -0700 Subject: [PATCH 3/3] Remove unnecessary else Signed-off-by: Luke Roberts --- commands.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands.go b/commands.go index 8e45d659b4..8d8f77bbcd 100644 --- a/commands.go +++ b/commands.go @@ -653,9 +653,8 @@ func cmdRm(c *cli.Context) { } 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.") - } else { - log.Print("The machine was successfully removed.") } + log.Print("The machine was successfully removed.") } func cmdEnv(c *cli.Context) {