Fix problem where profilednodes would 'BUG' the discovery process

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15005 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-01-28 21:38:13 +00:00
parent b52aac1cb6
commit 3c92465b9d

View File

@ -1236,7 +1236,11 @@ sub findme{
%args_dict = ();
# Read DB to confirm the discover is started.
my $sitetab = xCAT::Table->new('site');
my $sitevaluesstr = $sitetab->getAttribs({'key'=>'__PCMDiscover'},('value'))->{'value'};
my $stabent = $sitetab->getAttribs({'key'=>'__PCMDiscover'},('value'));
my $sitevaluesstr;
if (ref $stabent) {
$sitevaluesstr = $stabent->{'value'};
}
unless ($sitevaluesstr){
setrsp_errormsg("Profiled nodes discovery not started yet.");
return;