mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-29 18:35:33 +00:00 
			
		
		
		
	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:
		| @@ -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 | ||||
|     ###################################### | ||||
|   | ||||
		Reference in New Issue
	
	Block a user