From 685b8a7cfea4befe73fa0d7b80392992d1d10ee3 Mon Sep 17 00:00:00 2001 From: jjhua Date: Wed, 7 Dec 2011 08:10:17 +0000 Subject: [PATCH] change the output messages when the powerinterval value is invalid git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11153 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPpower.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/perl-xCAT/xCAT/FSPpower.pm b/perl-xCAT/xCAT/FSPpower.pm index 70ba605cd..e909ac9cc 100644 --- a/perl-xCAT/xCAT/FSPpower.pm +++ b/perl-xCAT/xCAT/FSPpower.pm @@ -275,6 +275,9 @@ sub powercmd { my $d = $hash->{$node_name}; if( $data =~ /Error/) { + if( $data =~ /Power interval/) { + $data = "Error: Invalid powerinterval value in the site table. The valid powerinerval value could be 0 to 300 ."; + } push @output, [$node_name, $data, -1]; } else { push @output, [$node_name,"Success", 0];