diff --git a/xCAT-server/lib/xcat/plugins/rhevm.pm b/xCAT-server/lib/xcat/plugins/rhevm.pm
index c6822d6b2..10167a104 100644
--- a/xCAT-server/lib/xcat/plugins/rhevm.pm
+++ b/xCAT-server/lib/xcat/plugins/rhevm.pm
@@ -3839,12 +3839,7 @@ sub getrvidparms {
$consparam{method} = 'kvm';
# get the attributes for vm
- my $api = "/api/vms?search=$node";
- my $method = "GET";
- my $content = "";
-
- my $request = genreq($ref_rhevm, $method, $api, $content);
- my ($rc, $response) = send_req($ref_rhevm, $request->as_string());
+ my ($rc, undef, undef, $response) = search_src($ref_rhevm, "vms", "$node");
my $vmid;
my $rsp;
@@ -3875,11 +3870,11 @@ sub getrvidparms {
}
# get the password ticket for the external program to accesss the VNC
- $api = "/api/vms/$vmid/ticket";
- $method = "POST";
- $content = "120";
+ my $api = "/api/vms/$vmid/ticket";
+ my $method = "POST";
+ my $content = "120";
- $request = genreq($ref_rhevm, $method, $api, $content);
+ my $request = genreq($ref_rhevm, $method, $api, $content);
($rc, $response) = send_req($ref_rhevm, $request->as_string());
if ($rc) {