mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	OpenBMC reventlog flag verification
This commit is contained in:
		| @@ -255,7 +255,7 @@ sub run_cmd_in_perl { | ||||
|     } | ||||
|  | ||||
|     # List of commands currently not supported in Python | ||||
|     my @unsupported_in_python_commands = ('rflash', 'rspconfig', 'reventlog', 'getopenbmccons'); | ||||
|     my @unsupported_in_python_commands = ('rflash', 'rspconfig', 'getopenbmccons'); | ||||
|  | ||||
|     if ($command ~~ @unsupported_in_python_commands) { | ||||
|         # Command currently not supported in Python | ||||
|   | ||||
| @@ -364,7 +364,12 @@ sub parse_args { | ||||
|         } | ||||
|     } elsif ($command eq "reventlog") { | ||||
|         $subcommand = "all" if (!defined($ARGV[0])); | ||||
|         if ($subcommand =~ /^resolved=(.*)/) { | ||||
|         if (scalar(@ARGV) >= 2) { | ||||
|             if ($ARGV[1] =~ /^-s$/) { | ||||
|                 return ([ 1, "The -s option is not supported for OpenBMC." ]); | ||||
|             } | ||||
|             return ([ 1, "Only one option is supported at the same time for $command" ]); | ||||
|         } elsif ($subcommand =~ /^resolved=(.*)/) { | ||||
|             my $value = $1; | ||||
|             if (not $value) { | ||||
|                 return ([ 1, "$usage_errormsg $reventlog_no_id_resolved_errormsg" ]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user