Logs for Start
Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
parent
91e0fdf7db
commit
8258a77086
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue