mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	Parsing : fix for sendmsg() error message (#2983)
This commit is contained in:
		| @@ -1566,6 +1566,7 @@ sub sendmsg { | ||||
|         $rc   = $text->[0]; | ||||
|         $text = $text->[1]; | ||||
|     } | ||||
|     my $text_origin = $text; # Save original text string | ||||
|     if ($text =~ /:/) { | ||||
|         ($descr, $text) = split /:/, $text, 2; | ||||
|     } | ||||
| @@ -1582,7 +1583,7 @@ sub sendmsg { | ||||
|     } | ||||
|     if ($rc) { | ||||
|         $curptr->{errorcode} = [$rc]; | ||||
|         $curptr->{error}     = [$text]; | ||||
|         $curptr->{error}     = [$text_origin]; | ||||
|         $curptr              = $curptr->{error}->[0]; | ||||
|         if (defined $node && %allerrornodes) { | ||||
|             $allerrornodes{$node} = 1; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user