Browse Source

Logs for Start

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

+ 3
- 9
drivers/openstack/openstack.go View File

@@ -385,25 +385,19 @@ func (d *Driver) Create() error {
385 385
 }
386 386
 
387 387
 func (d *Driver) Start() error {
388
-	log.Debug("Starting OpenStack instance...", map[string]string{"MachineId": d.MachineId})
389 388
 	if err := d.initCompute(); err != nil {
390 389
 		return err
391 390
 	}
392
-	if err := d.client.StartInstance(d); err != nil {
393
-		return err
394
-	}
395
-	return nil
391
+
392
+	return d.client.StartInstance(d)
396 393
 }
397 394
 
398 395
 func (d *Driver) Stop() error {
399 396
 	if err := d.initCompute(); err != nil {
400 397
 		return err
401 398
 	}
402
-	if err := d.client.StopInstance(d); err != nil {
403
-		return err
404
-	}
405 399
 
406
-	return nil
400
+	return d.client.StopInstance(d)
407 401
 }
408 402
 
409 403
 func (d *Driver) Remove() error {

Loading…
Cancel
Save