mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
xenapi_driver: fix copy-paste typo
Clang found that we are passing variable with wrong enum type to 'xenapiCrashExitEnum2virDomainLifecycle' function. This is probably copy-paste typo as the correct variable exists in the code, but it isn't used. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
af1c98e406
commit
828e485bd5
@ -1504,7 +1504,7 @@ xenapiDomainGetXMLDesc(virDomainPtr dom, unsigned int flags)
|
||||
defPtr->onReboot = xenapiNormalExitEnum2virDomainLifecycle(action);
|
||||
enum xen_on_crash_behaviour crash;
|
||||
if (xen_vm_get_actions_after_crash(session, &crash, vm))
|
||||
defPtr->onCrash = xenapiCrashExitEnum2virDomainLifecycle(action);
|
||||
defPtr->onCrash = xenapiCrashExitEnum2virDomainLifecycle(crash);
|
||||
xen_vm_get_platform(session, &result, vm);
|
||||
if (result != NULL) {
|
||||
size_t i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user