Logs for Start

Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
David Gageot 2015-12-30 11:50:39 +01:00
parent 91e0fdf7db
commit 8258a77086
1 changed files with 3 additions and 9 deletions

View File

@ -385,25 +385,19 @@ func (d *Driver) Create() error {
} }
func (d *Driver) Start() error { func (d *Driver) Start() error {
log.Debug("Starting OpenStack instance...", map[string]string{"MachineId": d.MachineId})
if err := d.initCompute(); err != nil { if err := d.initCompute(); err != nil {
return err return err
} }
if err := d.client.StartInstance(d); err != nil {
return err return d.client.StartInstance(d)
}
return nil
} }
func (d *Driver) Stop() error { func (d *Driver) Stop() error {
if err := d.initCompute(); err != nil { if err := d.initCompute(); err != nil {
return err return err
} }
if err := d.client.StopInstance(d); err != nil {
return err
}
return nil return d.client.StopInstance(d)
} }
func (d *Driver) Remove() error { func (d *Driver) Remove() error {