fixed bug 3314511, modified the error message

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9786 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2011-06-13 01:33:11 +00:00
parent 526035cf86
commit d8f030a7a8

View File

@ -192,7 +192,7 @@ sub powercmd {
if($action =~ /^on$/) { $action = "cec_on_autostart"; }
if($action =~ /^off$/) { $action = "cec_off"; }
if($action =~ /^lowpower$/) { $action = "cec_on_low_power"; }
if($action =~ /^of$/ ) {
if($action !~ /^cec_on_autostart$/ && $action !~ /^cec_off$/ && $action !~ /^cec_on_low_power$/ ) {
push @output, [$node_name, "\'$action\' command not supported for CEC", -1 ];
#return (\@output);
next;