mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	Print a warning message if running eventlog resolution across a range
This commit is contained in:
		| @@ -1067,9 +1067,6 @@ sub parse_args { | ||||
|             return ([ 1, "Unsupported command: $command $subcommand" ]); | ||||
|         } | ||||
|     } elsif ($command eq "reventlog") { | ||||
|         #  | ||||
|         # TODO, resolved should NOT be supported if range is provided  | ||||
|         # | ||||
|         $subcommand = "all" if (!defined($ARGV[0])); | ||||
|         if ($subcommand =~ /^(\w+)=(.*)/) { | ||||
|             my $key = $1; | ||||
| @@ -1078,6 +1075,11 @@ sub parse_args { | ||||
|                 return ([ 1, "$usage_errormsg $reventlog_no_id_resolved_errormsg" ]); | ||||
|             } | ||||
|  | ||||
|             my $nodes_num = @$noderange; | ||||
|             if (@$noderange > 1) {  | ||||
|                 xCAT::SvrUtils::sendmsg("WARN: Resolving faults over a xCAT noderange is not recommended.", $callback); | ||||
|             } | ||||
|  | ||||
|             xCAT::SvrUtils::sendmsg("Attempting to resolve the following log entries: $value...", $callback); | ||||
|             my @entries = split(',', $value); | ||||
|             # take the first element from the list  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user