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:
parent
d2e410d037
commit
00ec86573a
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user