mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	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:
		| @@ -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; | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user