mirror of https://github.com/docker/docs.git
Reporting success of each machine when removing multiples
Signed-off-by: Dave Henderson <Dave.Henderson@ca.ibm.com>
This commit is contained in:
parent
30ae863a4b
commit
e55d9cb072
|
@ -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.")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue