Conditional reload.
This commit is contained in:
parent
17845beadc
commit
c940f7e754
|
@ -119,7 +119,11 @@ func (d *ESX5Driver) IsRunning(string) (bool, error) {
|
|||
}
|
||||
|
||||
func (d *ESX5Driver) ReloadVM() error {
|
||||
return d.sh("vim-cmd", "vmsvc/reload", d.vmId)
|
||||
if d.vmId != "" {
|
||||
return d.sh("vim-cmd", "vmsvc/reload", d.vmId)
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func (d *ESX5Driver) Start(vmxPathLocal string, headless bool) error {
|
||||
|
|
Loading…
Reference in New Issue