add support for clienttype=other

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5420 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-03-09 16:09:14 +00:00
parent d2e410d037
commit 00ec86573a

View File

@ -1668,10 +1668,14 @@ sub validate {
if ($peerhost) {
$rsp->{clientname} -> [0] = $peerhost;
}
if (defined $request->{becomeuser}) {
$rsp->{clienttype} -> [0] = "webui";
if (defined $request->{clienttype}) {
$rsp->{clienttype} -> [0] = $request->{clienttype} -> [0];
} else {
$rsp->{clienttype} -> [0] = "cli";
if (defined $request->{becomeuser}) {
$rsp->{clienttype} -> [0] = "webui";
} else {
$rsp->{clienttype} -> [0] = "other";
}
}
$rsp->{command} -> [0] = $request->{command}->[0];
if ($request->{noderange} && defined($request->{noderange}->[0])) {