From 3c92465b9d65baffcb587a471b16018b2c845998 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 28 Jan 2013 21:38:13 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/profilednodes.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm index fe04220eb..8fee75dac 100644 --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm @@ -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;