add the logic if the daemon has already processed

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11507 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2012-02-08 02:27:37 +00:00
parent 07249c24e6
commit 206d7ab908
2 changed files with 16 additions and 0 deletions

View File

@ -36,6 +36,14 @@ sub handled_commands {
##########################################################################
sub preprocess_request {
my ($arg1, $arg2, $arg3) = @_;
#if already preprocessed, go straight to request
if ((defined($arg1->{_xcatpreprocessed}))
&& ($arg1->{_xcatpreprocessed}->[0] == 1))
{
return [$arg1];
}
if ($arg1->{command}->[0] eq "gethmccon") { #Can handle it here and now
my $node = $arg1->{noderange}->[0];
my $callback = $arg2;

View File

@ -36,6 +36,14 @@ sub handled_commands {
##########################################################################
sub preprocess_request {
my ($arg1, $arg2, $arg3) = @_;
#if already preprocessed, go straight to request
if ((defined($arg1->{_xcatpreprocessed}))
&& ($arg1->{_xcatpreprocessed}->[0] == 1))
{
return [$arg1];
}
if ($arg1->{command}->[0] eq "gethmccon") { #Can handle it here and now
my $node = $arg1->{noderange}->[0];
my $callback = $arg2;