api: Return object name in the listHypervisorCapabilities API (#6771)

The hypervisorCapabilitiesResponse does not set an object name, returning a null object name instead. This PR adds an object name to the response.
This commit is contained in:
João Jandre 2022-10-09 00:16:08 -03:00 committed by GitHub
parent 9a381db956
commit 82d91d596b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,10 @@ public class HypervisorCapabilitiesResponse extends BaseResponse {
@Param(description = "true if VM snapshots are enabled for this hypervisor")
private boolean isVmSnapshotEnabled;
public HypervisorCapabilitiesResponse(){
super("hypervisorcapabilities");
}
public String getId() {
return id;
}