UI: Fix upgrade router template operation failure (#11901)

This commit is contained in:
Nicolas Vazquez 2025-10-24 05:08:06 -03:00 committed by GitHub
parent a2fcbd608a
commit 7ef5db2153
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 18 deletions

View File

@ -16,27 +16,10 @@
// under the License.
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.EntityReference;
import org.apache.cloudstack.jobs.JobInfo;
import com.cloud.serializer.Param;
@EntityReference(value = JobInfo.class)
@SuppressWarnings("unused")
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;
}
}

View File

@ -4994,7 +4994,7 @@ public class ApiResponseHelper implements ResponseGenerator {
for (Long jobId : jobIds) {
UpgradeRouterTemplateResponse routerResponse = new UpgradeRouterTemplateResponse();
AsyncJob job = _entityMgr.findById(AsyncJob.class, jobId);
routerResponse.setAsyncJobId((job.getUuid()));
routerResponse.setJobId((job.getUuid()));
routerResponse.setObjectName("asyncjobs");
responses.add(routerResponse);
}