Skip to content

Commit 97c8d6f

Browse files
committed
insert parameters as HashMap into accessDetails in RunCustomAction
1 parent d205b84 commit 97c8d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hypervisors/external/src/main/java/org/apache/cloudstack/hypervisor/external/provisioner/ExternalEntryPointPayloadProvisioner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public RunCustomActionAnswer runCustomAction(String hostGuid, String extensionNa
435435
Map<String, Object> accessDetails = loadAccessDetails(externalDetails, virtualMachineTO);
436436
accessDetails.put(ApiConstants.ACTION, actionName);
437437
if (MapUtils.isNotEmpty(parameters)) {
438-
accessDetails.put(ApiConstants.PARAMETERS, GsonHelper.getGson().toJson(parameters));
438+
accessDetails.put(ApiConstants.PARAMETERS, parameters);
439439
}
440440
Pair<Boolean, String> result = runCustomActionOnExternalSystem(extensionName, extensionPath,
441441
actionName, accessDetails, cmd.getWait());

0 commit comments

Comments
 (0)