From c74f449b5fa0392db77c651da4a52f705ace9e62 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Sun, 31 Dec 2017 23:59:59 +0000 Subject: [PATCH] Remove trailing spaces in file xCAT-server/lib/xcat/plugins/onie.pm --- xCAT-server/lib/xcat/plugins/onie.pm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/onie.pm b/xCAT-server/lib/xcat/plugins/onie.pm index 01ed8edd5..b2f847d6e 100644 --- a/xCAT-server/lib/xcat/plugins/onie.pm +++ b/xCAT-server/lib/xcat/plugins/onie.pm @@ -28,7 +28,7 @@ $::VERBOSE = 0; sub handled_commands { return { - nodeset => 'nodehm:mgt=switch', + nodeset => 'nodehm:mgt=switch', copydata => 'onie', } } @@ -100,7 +100,7 @@ sub process_request { } -# build cumulus OS image +# build cumulus OS image sub copydata { my $request = shift; my $callback = shift; @@ -108,7 +108,7 @@ sub copydata { my $inspection = undef; my $noosimage = undef; my $nooverwrite = undef; - + # get arguments my $args = $request->{arg}; if ($args) { @@ -226,7 +226,7 @@ sub copydata { } -# run the nodeset to updatenode provmethod +# run the nodeset to updatenode provmethod sub nodeset { my $request = shift; my $callback = shift; @@ -234,7 +234,7 @@ sub nodeset { my $switches = $request->{'node'}; my $args = $request->{arg}; - my $provmethod; + my $provmethod; my $image_pkgdir; my $setosimg; @@ -260,7 +260,7 @@ sub nodeset { if ($setosimg) { $provmethod = $setosimg; } else { - $provmethod = $nodehash->{$switch}->[0]->{provmethod}; + $provmethod = $nodehash->{$switch}->[0]->{provmethod}; } if ($::VERBOSE) { xCAT::MsgUtils->message("I", { data => ["$switch has provmethod=$provmethod"] }, $callback); @@ -273,15 +273,15 @@ sub nodeset { my $osimghash = $osimagetab->getAttribs({ imagename => $provmethod },'osvers','osarch'); unless($imagetab and $osimghash){ xCAT::MsgUtils->message("E", { error => ["cannot find osimage \"$provmethod\" for $switch, please make sure the osimage specified in command line or node.provmethod exists!"], errorcode => ["1"] }, $callback); - next; + next; } my %attribs=('provmethod' => $provmethod,'os'=>$osimghash->{'osvers'},'arch'=>$osimghash->{'osarch'} ); $nodetab->setAttribs({ 'node' => $switch }, \%attribs); $image_pkgdir = $imagetab->{'pkgdir'}; - - #validate the image pkgdir + + #validate the image pkgdir my $flag=0; if (-r $image_pkgdir) { my @filestat = `file $image_pkgdir`;