From b8247060de68a6fc103e9bc37fe3c196ad8e8d83 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 7 Apr 2008 19:25:44 +0000 Subject: [PATCH] Fix hierarchy and change use libs to require git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@994 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/xdsh.pm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/xdsh.pm b/xCAT-server-2.0/lib/xcat/plugins/xdsh.pm index eb7959ee6..a7bc5c8bb 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/xdsh.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/xdsh.pm @@ -12,11 +12,11 @@ #------------------------------------------------------- package xCAT_plugin::xdsh; -use xCAT::Table; +require xCAT::Table; -use xCAT::Utils; +require xCAT::Utils; -use xCAT::MsgUtils; +require xCAT::MsgUtils; use Getopt::Long; require xCAT::DSHCLI; 1; @@ -54,7 +54,6 @@ sub preprocess_request my $cb = shift; my %sn; if ($req->{_xcatdest}) { return [$req]; } #exit if preprocessed - my @requests = ({%$req}); #first element is local instance my @nodes = $req->{node}; my $service = "xcat"; @@ -67,14 +66,11 @@ sub preprocess_request foreach my $snkey (keys %$sn) { - if (xCAT::Utils->thishostisnot($snkey)) - { my $reqcopy = {%$req}; $reqcopy->{node} = $sn->{$snkey}; $reqcopy->{'_xcatdest'} = $snkey; push @requests, $reqcopy; - } } return \@requests; }