cs_instance: fix host migration without volume (#46115)

This commit is contained in:
René Moser 2018-09-25 16:48:45 +02:00 committed by GitHub
parent 7e8435b96d
commit e7926cf9f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -840,7 +840,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
'hostid': self.get_host_id(),
}
if not self.module.check_mode:
res = self.query_api('migrateVirtualMachineWithVolume', **args_host)
res = self.query_api('migrateVirtualMachine', **args_host)
instance = self.poll_job(res, 'virtualmachine')
return instance