From 41903b8a41440264ec01ece97cd34e7aff45284b Mon Sep 17 00:00:00 2001 From: jjhua Date: Mon, 9 May 2011 07:13:49 +0000 Subject: [PATCH] add one limitation for rackenv. It couldn't be used when the nodes' hcp is hmc git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9518 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCvitals.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/perl-xCAT/xCAT/PPCvitals.pm b/perl-xCAT/xCAT/PPCvitals.pm index 3ea820b45..3d1786099 100644 --- a/perl-xCAT/xCAT/PPCvitals.pm +++ b/perl-xCAT/xCAT/PPCvitals.pm @@ -56,6 +56,13 @@ sub parse_args { if ( !defined( $cmd )) { return(usage( "Invalid command: $ARGV[0]" )); } + + if($ARGV[0] =~ /^rackenv$/) { + if($request->{hwtype} =~ /^hmc$/) { + return(usage( "Command $ARGV[0] is not valid when the nodes' hcp is hmc" )); + } + } + #################################### # Check for an extra argument ####################################