Skip to content

Commit d678a78

Browse files
committed
fix list API name parameter
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent be7b202 commit d678a78

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/ingestion/ListUnmanagedInstancesCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ public class ListUnmanagedInstancesCmd extends BaseListCmd {
6464
@Parameter(name = ApiConstants.NAME,
6565
type = CommandType.UUID,
6666
description = "the hypervisor name of the instance")
67-
private Long name;
67+
private String name;
6868

6969
public Long getClusterId() {
7070
return clusterId;
7171
}
7272

73-
public Long getName() {
73+
public String getName() {
7474
return name;
7575
}
7676

server/src/main/java/org/apache/cloudstack/ingestion/VmIngestionManagerImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ public ListResponse<UnmanagedInstanceResponse> listUnmanagedInstances(ListUnmana
222222
}
223223

224224
GetUnmanagedInstancesCommand command = new GetUnmanagedInstancesCommand();
225+
command.setInstanceName(cmd.getName());
225226
command.setManagedInstancesNames(managedVms);
226227
Answer answer = agentManager.easySend(host.getId(), command);
227228
if (answer instanceof GetUnmanagedInstancesAnswer) {

0 commit comments

Comments
 (0)