Skip to content

Commit

Permalink
vz: return correct result for unimplemented ChangeState actions
Browse files Browse the repository at this point in the history
Map PRL_ERR_UNIMPLEMENTED to VIR_ERR_OPERATION_INVALID

Signed-off-by: Maxim Nestratov <[email protected]>
  • Loading branch information
mnestratov committed Jun 11, 2016
1 parent ab753f7 commit f166d64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vz/vz_sdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2026,6 +2026,7 @@ prlsdkDomainChangeStateLocked(vzDriverPtr driver,
case PRL_ERR_DISP_VM_IS_NOT_STARTED:
case PRL_ERR_DISP_VM_IS_NOT_STOPPED:
case PRL_ERR_INVALID_ACTION_REQUESTED:
case PRL_ERR_UNIMPLEMENTED:
virerr = VIR_ERR_OPERATION_INVALID;
break;
default:
Expand Down

0 comments on commit f166d64

Please sign in to comment.