ovirt vm migrate with state present (#58136)
* ovirt vm migrate with state present init * add migrate comment
This commit is contained in:
parent
fb1610a9ac
commit
051172f9bf
1 changed files with 2 additions and 1 deletions
|
@ -1646,7 +1646,6 @@ class VmsModule(BaseModule):
|
|||
vm_service = self._service.service(entity.id)
|
||||
self._wait_for_UP(vm_service)
|
||||
self._attach_cd(vm_service.get())
|
||||
self._migrate_vm(vm_service.get())
|
||||
|
||||
def _attach_cd(self, entity):
|
||||
cd_iso = self.param('cd_iso')
|
||||
|
@ -2484,6 +2483,8 @@ def main():
|
|||
action_condition=lambda vm: vm.status == otypes.VmStatus.UP,
|
||||
wait_condition=lambda vm: vm.status == otypes.VmStatus.UP,
|
||||
)
|
||||
# Allow migrate vm when state present.
|
||||
vms_module._migrate_vm(vm)
|
||||
ret['changed'] = vms_module.changed
|
||||
elif state == 'stopped':
|
||||
if module.params['xen'] or module.params['kvm'] or module.params['vmware']:
|
||||
|
|
Loading…
Reference in a new issue