hasn- fix bad return from doSFScopy
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12914 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
8c73c1a3c8
commit
566f801972
@ -9230,7 +9230,7 @@ sub doSFScopy
|
||||
|
||||
unless(scalar @SNlist)
|
||||
{
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
my $snlist=join(',',@SNlist);
|
||||
@ -12136,13 +12136,15 @@ sub make_SN_resource
|
||||
|
||||
# try to make sure the spot and boot image is in correct state
|
||||
if ($imghash{$image}{spot}) {
|
||||
my $ckcmd = qq~/usr/sbin/nim -Fo check $imghash{$image}{spot}~;
|
||||
my $ckcmd = qq~/usr/sbin/nim -Fo check $imghash{$image}{spot} 2>/dev/null~;
|
||||
my $output = xCAT::Utils->runcmd("$ckcmd", -1);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
my $rsp;
|
||||
push @{$rsp->{data}}, "Could not run $ckcmd.\n";
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
if ($::VERBOSE) {
|
||||
my $rsp;
|
||||
push @{$rsp->{data}}, "Could not run $ckcmd.\n";
|
||||
xCAT::MsgUtils->message("I", $rsp, $callback);
|
||||
}
|
||||
}
|
||||
}
|
||||
} # end - for each image
|
||||
|
Loading…
Reference in New Issue
Block a user