From 21202e8773d443b7379a4a63c8414110f54ac5bb Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 27 Nov 2012 17:01:49 +0000 Subject: [PATCH] put in support to auditskipcmds for clienttype:value git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14439 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/xcatd.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT-server/lib/perl/xCAT/xcatd.pm b/xCAT-server/lib/perl/xCAT/xcatd.pm index 9bd5f09f8..837e18c2d 100644 --- a/xCAT-server/lib/perl/xCAT/xcatd.pm +++ b/xCAT-server/lib/perl/xCAT/xcatd.pm @@ -214,7 +214,14 @@ sub validate { if (grep(/$request->{command}->[0]/, @skipcmds)) { # skip the command $skip = 1; } + # if skip clienttype clienttype:value + my $client="clienttype:"; + $client .= $request->{clienttype}->[0]; + if (grep(/$client/, @skipcmds)) { #skip the client + $skip = 1; + } } + } @$deferredmsgargs=(); #should be redundant, but just in case if (($request->{command}->[0] ne "getpostscript") && ($request->{command}->[0] ne "getcredentials") && ($skip == 0)) {