add check for webui
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5407 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
161302402b
commit
ced2bb38e5
@ -1668,7 +1668,11 @@ sub validate {
|
||||
if ($peerhost) {
|
||||
$rsp->{clientname} -> [0] = $peerhost;
|
||||
}
|
||||
$rsp->{clienttype} -> [0] = "cli";
|
||||
if (defined $request->{becomeuser}) {
|
||||
$rsp->{clienttype} -> [0] = "webui";
|
||||
} else {
|
||||
$rsp->{clienttype} -> [0] = "cli";
|
||||
}
|
||||
$rsp->{command} -> [0] = $request->{command}->[0];
|
||||
if ($request->{noderange} && defined($request->{noderange}->[0])) {
|
||||
$rsp->{noderange} -> [0] = $request->{noderange}->[0];
|
||||
|
Loading…
Reference in New Issue
Block a user