2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-01 18:35:36 +00:00

handle the case when conserver is not available

This commit is contained in:
bxuxa
2019-03-27 13:46:14 +08:00
parent 2fd209d5bc
commit b2e6f56cb0

View File

@ -212,10 +212,16 @@ sub process_request {
} else {
my $rsp->{data}->[0] = "makeconservercf is deprecrated as well as conserver, go to makegocons for more information about enabling goconserver.";
xCAT::MsgUtils->message("W", $rsp, $cb);
xCAT::Goconserver::switch_conserver($cb) if (-x "/usr/sbin/conserver");
}
xCAT::Goconserver::switch_conserver($cb);
}
makeconservercf($req, $cb);
if (-x "/usr/sbin/conserver") {
makeconservercf($req, $cb);
} else {
my $rsp->{data}->[0] = "conserver is not supported or not installed.";
xCAT::MsgUtils->message("E", $rsp, $cb);
return;
}
}
}