[PATCH] Fix name of Snaphot parameter to ApplySnapshot

# HG changeset patch # User Jim Fehlig <jfehlig@novell.com> # Date 1218080667 21600 # Node ID 245baf0acbcbe3f2f0f425bf0d803110fa8c9eaa # Parent 394f63c771edba0828e4aa0b48f7e9e2689b14c7 Fix name of Snaphot parameter to ApplySnapshot The ApplySnapshot extrinsic takes 1 input parameter named Snapshot. Change parameter name from AffectedSnapshot to Snapshot. Signed-off-by: Jim Fehlig <jfehlig@novell.com> diff -r 394f63c771ed -r 245baf0acbcb src/Virt_VirtualSystemSnapshotService.c --- a/src/Virt_VirtualSystemSnapshotService.c Wed Aug 06 21:35:12 2008 -0600 +++ b/src/Virt_VirtualSystemSnapshotService.c Wed Aug 06 21:44:27 2008 -0600 @@ -542,7 +542,7 @@ static CMPIStatus apply_snapshot(CMPIMet char *name = NULL; uint32_t retcode = CIM_RETURN_FAILED; - if (cu_get_ref_arg(argsin, "AffectedSnapshot", &snap) != CMPI_RC_OK) { + if (cu_get_ref_arg(argsin, "Snapshot", &snap) != CMPI_RC_OK) { cu_statusf(_BROKER, &s, CMPI_RC_ERR_INVALID_PARAMETER, "Missing Snapshot"); @@ -587,7 +587,7 @@ static struct method_handler ApplySnapsh static struct method_handler ApplySnapshot = { .name = "ApplySnapshot", .handler = apply_snapshot, - .args = {{"AffectedSnapshot", CMPI_ref, false}, + .args = {{"Snapshot", CMPI_ref, false}, ARG_END} };
participants (1)
-
Jim Fehlig