-Ensure that mknb, ipmi, and nodestat are strict compliant
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1901 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -3,8 +3,9 @@ | ||||
| #modified by jbjohnso@us.ibm.com | ||||
| #(C)IBM Corp | ||||
|  | ||||
| $xcat_plugins{ipmi}="this"; | ||||
| package xCAT_plugin::ipmi; | ||||
| use strict; | ||||
| use warnings "all"; | ||||
|  | ||||
| use Storable qw(store_fd retrieve_fd thaw freeze); | ||||
| use xCAT::Utils; | ||||
| @@ -14,8 +15,8 @@ my $tfactor = 0; | ||||
| my %bmc_comm_pids; | ||||
|  | ||||
| require Exporter; | ||||
| @ISA = qw(Exporter); | ||||
| @EXPORT = qw( | ||||
| our @ISA = qw(Exporter); | ||||
| our @EXPORT = qw( | ||||
| 	ipmiinit | ||||
| 	ipmicmd | ||||
| ); | ||||
| @@ -33,7 +34,6 @@ sub handled_commands { | ||||
| } | ||||
|  | ||||
|      | ||||
| use strict; | ||||
| use Data::Dumper; | ||||
| use POSIX "WNOHANG"; | ||||
| use IO::Handle; | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| package xCAT_plugin::mknb; | ||||
| use strict; | ||||
| use File::Temp qw(tempdir); | ||||
| use xCAT::Utils; | ||||
| use File::Path; | ||||
|   | ||||
| @@ -1,4 +1,6 @@ | ||||
| package xCAT_plugin::nodestat; | ||||
| use strict; | ||||
| use warnings; | ||||
|  | ||||
| use Socket; | ||||
| use IO::Handle; | ||||
| @@ -78,7 +80,7 @@ sub preprocess_request | ||||
|  | ||||
|     # find service nodes for requested nodes | ||||
|     # build an individual request for each service node | ||||
|     $sn = xCAT::Utils->get_ServiceNode($nodes, $service, "MN"); | ||||
|     my $sn = xCAT::Utils->get_ServiceNode($nodes, $service, "MN"); | ||||
|  | ||||
|     # build each request for each service node | ||||
|     my @requests; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user