Add check if command supported by power method - Line #564
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@112 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f0b56d246a
commit
fffadea1ec
@ -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
|
||||
######################################
|
||||
|
Loading…
Reference in New Issue
Block a user