From 362f237975a557f620fbd76ce8e35a75ed74e7e6 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sun, 19 Feb 2012 16:09:21 +0000 Subject: [PATCH] Fix various omissions of 'use' statements. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11623 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/AAAusage.pm | 1 + xCAT-server/lib/xcat/plugins/aixinstall.pm | 1 + xCAT-server/lib/xcat/plugins/hpilo.pm | 1 + xCAT-server/lib/xcat/plugins/imgcapture.pm | 1 + xCAT-server/lib/xcat/plugins/lsslp.pm | 1 + xCAT-server/lib/xcat/plugins/snmove.pm | 1 + xCAT-server/lib/xcat/plugins/switch.pm | 1 + xCAT-server/lib/xcat/plugins/syncfiles.pm | 1 + xCAT-server/lib/xcat/plugins/updatenode.pm | 2 ++ xCAT-server/lib/xcat/plugins/xen.pm | 1 + 10 files changed, 11 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/AAAusage.pm b/xCAT-server/lib/xcat/plugins/AAAusage.pm index f09afce69..4ec3005bb 100644 --- a/xCAT-server/lib/xcat/plugins/AAAusage.pm +++ b/xCAT-server/lib/xcat/plugins/AAAusage.pm @@ -2,6 +2,7 @@ package xCAT_plugin::AAAusage; use strict; +use xCAT::Usage; ########################################################################## # Common help plugin for table-driven commands ########################################################################## diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 6d79379b8..ec1e7b0ad 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -20,6 +20,7 @@ use File::Basename; use xCAT::NodeRange; use xCAT::Schema; use xCAT::Utils; +use xCAT::SvrUtils; use xCAT::NetworkUtils; use xCAT::InstUtils; use xCAT::DBobjUtils; diff --git a/xCAT-server/lib/xcat/plugins/hpilo.pm b/xCAT-server/lib/xcat/plugins/hpilo.pm index 3d0028e0c..070ab4034 100755 --- a/xCAT-server/lib/xcat/plugins/hpilo.pm +++ b/xCAT-server/lib/xcat/plugins/hpilo.pm @@ -46,6 +46,7 @@ use xCAT::GlobalDef; use POSIX qw(ceil floor); use Storable qw(store_fd retrieve_fd thaw freeze); use xCAT::Utils; +use xCAT::SvrUtils; use xCAT::Usage; use Thread qw(yield); use Socket; diff --git a/xCAT-server/lib/xcat/plugins/imgcapture.pm b/xCAT-server/lib/xcat/plugins/imgcapture.pm index c04dd6fed..ff7874541 100644 --- a/xCAT-server/lib/xcat/plugins/imgcapture.pm +++ b/xCAT-server/lib/xcat/plugins/imgcapture.pm @@ -16,6 +16,7 @@ use Data::Dumper; # for debug purpose use Getopt::Long; use xCAT::MsgUtils; use xCAT::Utils; +use xCAT::SvrUtils; use xCAT::Table; use File::Path qw(mkpath); diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index fc5b1a832..95d8bb2b5 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -5,6 +5,7 @@ use lib "/opt/xcat/lib/perl"; use strict; use Getopt::Long; use Socket; +use xCAT::Usage; use POSIX "WNOHANG"; use Storable qw(freeze thaw); use Time::HiRes qw(gettimeofday); diff --git a/xCAT-server/lib/xcat/plugins/snmove.pm b/xCAT-server/lib/xcat/plugins/snmove.pm index b0f903198..8888dbbc7 100644 --- a/xCAT-server/lib/xcat/plugins/snmove.pm +++ b/xCAT-server/lib/xcat/plugins/snmove.pm @@ -22,6 +22,7 @@ use xCAT::Table; use xCAT::Utils; use xCAT::NetworkUtils; use xCAT::MsgUtils; +use xCAT::SrvUtils; use Getopt::Long; use xCAT::NodeRange; diff --git a/xCAT-server/lib/xcat/plugins/switch.pm b/xCAT-server/lib/xcat/plugins/switch.pm index 386b458e8..4ce7d2a38 100644 --- a/xCAT-server/lib/xcat/plugins/switch.pm +++ b/xCAT-server/lib/xcat/plugins/switch.pm @@ -12,6 +12,7 @@ use Data::Dumper; use xCAT::MacMap; use xCAT::NodeRange; use Sys::Syslog; +use xCAT::Usage; use Storable; use xCAT::MellanoxIB; diff --git a/xCAT-server/lib/xcat/plugins/syncfiles.pm b/xCAT-server/lib/xcat/plugins/syncfiles.pm index 981b108e3..0339e4b8d 100644 --- a/xCAT-server/lib/xcat/plugins/syncfiles.pm +++ b/xCAT-server/lib/xcat/plugins/syncfiles.pm @@ -10,6 +10,7 @@ package xCAT_plugin::syncfiles; use xCAT::Utils; use xCAT::MsgUtils; +use xCAT::SrvUtils; use xCAT::NodeRange; 1; diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 2b453d926..e0957f6e5 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -13,6 +13,8 @@ use xCAT::Table; use xCAT::Schema; use Data::Dumper; use xCAT::Utils; +use xCAT::SvrUtils; +use xCAT::Usage; use xCAT::NetworkUtils; use xCAT::InstUtils; use Getopt::Long; diff --git a/xCAT-server/lib/xcat/plugins/xen.pm b/xCAT-server/lib/xcat/plugins/xen.pm index 0db463f6a..99b460968 100644 --- a/xCAT-server/lib/xcat/plugins/xen.pm +++ b/xCAT-server/lib/xcat/plugins/xen.pm @@ -14,6 +14,7 @@ use xCAT::Table; use XML::Simple qw(XMLout); use IO::Socket; use IO::Select; +use xCAT::Usage; use strict; #use warnings; my %vm_comm_pids;