From 28a4eccb48aebd4365687be5717ee396e9558e86 Mon Sep 17 00:00:00 2001 From: nott Date: Thu, 21 Mar 2013 13:58:55 +0000 Subject: [PATCH] fix rmnimres subroutine git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15612 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 49d071ddc..8c9eca8a9 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -6033,7 +6033,7 @@ sub rmnimres } # foreach attr in the image def - my $error; + my $error=0; foreach my $attr (sort(keys %{$imagedef{$osimage}})) { chomp $attr; @@ -6105,7 +6105,6 @@ sub rmnimres my $rsp; push @{$rsp->{data}}, "The resource named \'$resname\' will not be removed.\n"; xCAT::MsgUtils->message("I", $rsp, $callback); - $error++; next; } @@ -6159,7 +6158,6 @@ sub rmnimres if ($loc) { my $cmd = qq~/usr/bin/rm -R $loc~; - my $output = xCAT::Utils->runcmd("$cmd", -1); $output = xCAT::InstUtils->xcmd($callback, $subreq, "xdsh", $targetsn, $cmd, 0); } }