Logs for Kill

Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
David Gageot 2015-12-30 12:05:12 +01:00
parent 80518f988a
commit 9884a5e2ef
1 changed files with 4 additions and 4 deletions

View File

@ -408,6 +408,10 @@ func (d *Driver) Restart() error {
return d.client.RestartInstance(d) return d.client.RestartInstance(d)
} }
func (d *Driver) Kill() error {
return d.Stop()
}
func (d *Driver) Remove() error { func (d *Driver) Remove() error {
log.Debug("deleting instance...", map[string]string{"MachineId": d.MachineId}) log.Debug("deleting instance...", map[string]string{"MachineId": d.MachineId})
log.Info("Deleting OpenStack instance...") log.Info("Deleting OpenStack instance...")
@ -425,10 +429,6 @@ func (d *Driver) Remove() error {
return nil return nil
} }
func (d *Driver) Kill() error {
return d.Stop()
}
const ( const (
errorMandatoryEnvOrOption string = "%s must be specified either using the environment variable %s or the CLI option %s" errorMandatoryEnvOrOption string = "%s must be specified either using the environment variable %s or the CLI option %s"
errorMandatoryOption string = "%s must be specified using the CLI option %s" errorMandatoryOption string = "%s must be specified using the CLI option %s"