-Fix problem where makedhcp would fail on SQLite if servicenodetable didn't exist

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1454 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-05-20 17:56:53 +00:00
parent 4f94fb1714
commit 9af42aeca5

View File

@ -2269,12 +2269,11 @@ sub getSNList
# reads all nodes from the service node table
my @servicenodes;
my $servicenodetab = xCAT::Table->new('servicenode');
my $servicenodetab = xCAT::Table->new('servicenode',-create=>1);
unless ($servicenodetab) # no servicenode table
{
xCAT::MsgUtils->message('I', "Unable to open servicenode table.\n");
return 0;
return ();
}
my @nodes = $servicenodetab->getAllNodeAttribs([$service]);
$servicenodetab->close;