diff --git a/plugins/hypervisors/vmware/src/org/apache/cloudstack/api/command/admin/zone/AddVmwareDcCmd.java b/plugins/hypervisors/vmware/src/org/apache/cloudstack/api/command/admin/zone/AddVmwareDcCmd.java index 7168c7fc72a..fde96c81570 100644 --- a/plugins/hypervisors/vmware/src/org/apache/cloudstack/api/command/admin/zone/AddVmwareDcCmd.java +++ b/plugins/hypervisors/vmware/src/org/apache/cloudstack/api/command/admin/zone/AddVmwareDcCmd.java @@ -99,6 +99,7 @@ public class AddVmwareDcCmd extends BaseCmd { response.setId(result.getUuid()); response.setName(result.getVmwareDatacenterName()); response.setResponseName(getCommandName()); + response.setObjectName("vmwaredc"); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to add VMware Datacenter to zone."); }