Browse Source

Logs for Kill

Signed-off-by: David Gageot <david@gageot.net>
David Gageot 3 years ago
parent
commit
9884a5e2ef
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      drivers/openstack/openstack.go

+ 4
- 4
drivers/openstack/openstack.go View File

@@ -408,6 +408,10 @@ func (d *Driver) Restart() error {
408 408
 	return d.client.RestartInstance(d)
409 409
 }
410 410
 
411
+func (d *Driver) Kill() error {
412
+	return d.Stop()
413
+}
414
+
411 415
 func (d *Driver) Remove() error {
412 416
 	log.Debug("deleting instance...", map[string]string{"MachineId": d.MachineId})
413 417
 	log.Info("Deleting OpenStack instance...")
@@ -425,10 +429,6 @@ func (d *Driver) Remove() error {
425 429
 	return nil
426 430
 }
427 431
 
428
-func (d *Driver) Kill() error {
429
-	return d.Stop()
430
-}
431
-
432 432
 const (
433 433
 	errorMandatoryEnvOrOption    string = "%s must be specified either using the environment variable %s or the CLI option %s"
434 434
 	errorMandatoryOption         string = "%s must be specified using the CLI option %s"

Loading…
Cancel
Save