diff --git a/perl-xCAT-2.0/xCAT/PPC.pm b/perl-xCAT-2.0/xCAT/PPC.pm index aa80fb03a..d70d8310c 100644 --- a/perl-xCAT-2.0/xCAT/PPC.pm +++ b/perl-xCAT-2.0/xCAT/PPC.pm @@ -555,8 +555,15 @@ sub runcmd { my $request = shift; my $cmd = $request->{command}; my $method = $request->{method}; + my $hwtype = $request->{hwtype}; my $modname = $modules{$cmd}; - + + ###################################### + # Command not supported + ###################################### + if ( !defined( $modname )) { + return( ["$cmd not a supported command by $hwtype method"] ); + } ###################################### # Load specific module ######################################