fix rmnimres subroutine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@15611 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
3593f5c5f6
commit
a0348fa10b
@ -5940,7 +5940,7 @@ sub rmnimres
|
||||
}
|
||||
|
||||
# foreach attr in the image def
|
||||
my $error;
|
||||
my $error=0;
|
||||
foreach my $attr (sort(keys %{$imagedef{$osimage}}))
|
||||
{
|
||||
chomp $attr;
|
||||
@ -6012,7 +6012,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;
|
||||
}
|
||||
|
||||
@ -6066,7 +6065,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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user