mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 01:32:18 +02:00
UI: Fix upgrade router template operation failure (#11901)
This commit is contained in:
parent
a2fcbd608a
commit
7ef5db2153
@ -16,27 +16,10 @@
|
|||||||
// under the License.
|
// under the License.
|
||||||
package org.apache.cloudstack.api.response;
|
package org.apache.cloudstack.api.response;
|
||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
|
|
||||||
import org.apache.cloudstack.api.ApiConstants;
|
|
||||||
import org.apache.cloudstack.api.BaseResponse;
|
import org.apache.cloudstack.api.BaseResponse;
|
||||||
import org.apache.cloudstack.api.EntityReference;
|
import org.apache.cloudstack.api.EntityReference;
|
||||||
import org.apache.cloudstack.jobs.JobInfo;
|
import org.apache.cloudstack.jobs.JobInfo;
|
||||||
|
|
||||||
import com.cloud.serializer.Param;
|
|
||||||
|
|
||||||
@EntityReference(value = JobInfo.class)
|
@EntityReference(value = JobInfo.class)
|
||||||
@SuppressWarnings("unused")
|
|
||||||
public class UpgradeRouterTemplateResponse extends BaseResponse {
|
public class UpgradeRouterTemplateResponse extends BaseResponse {
|
||||||
@SerializedName(ApiConstants.JOB_ID)
|
|
||||||
@Param(description = "the id of AsyncJob")
|
|
||||||
private String asyncJobId;
|
|
||||||
|
|
||||||
public String getAsyncJobId() {
|
|
||||||
return asyncJobId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAsyncJobId(String asyncJobId) {
|
|
||||||
this.asyncJobId = asyncJobId;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4994,7 +4994,7 @@ public class ApiResponseHelper implements ResponseGenerator {
|
|||||||
for (Long jobId : jobIds) {
|
for (Long jobId : jobIds) {
|
||||||
UpgradeRouterTemplateResponse routerResponse = new UpgradeRouterTemplateResponse();
|
UpgradeRouterTemplateResponse routerResponse = new UpgradeRouterTemplateResponse();
|
||||||
AsyncJob job = _entityMgr.findById(AsyncJob.class, jobId);
|
AsyncJob job = _entityMgr.findById(AsyncJob.class, jobId);
|
||||||
routerResponse.setAsyncJobId((job.getUuid()));
|
routerResponse.setJobId((job.getUuid()));
|
||||||
routerResponse.setObjectName("asyncjobs");
|
routerResponse.setObjectName("asyncjobs");
|
||||||
responses.add(routerResponse);
|
responses.add(routerResponse);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user