From 00ec86573ab82256d02c06eacd39271d34ae76bc Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 9 Mar 2010 16:09:14 +0000 Subject: [PATCH] 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 --- xCAT-server/sbin/xcatd | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 2801baae8..752ee606b 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -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])) {