From 9af42aeca5759460c3367669cb1be19add62fe84 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 20 May 2008 17:56:53 +0000 Subject: [PATCH] -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 --- perl-xCAT-2.0/xCAT/Utils.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/perl-xCAT-2.0/xCAT/Utils.pm b/perl-xCAT-2.0/xCAT/Utils.pm index b5f5c789f..8bd965966 100644 --- a/perl-xCAT-2.0/xCAT/Utils.pm +++ b/perl-xCAT-2.0/xCAT/Utils.pm @@ -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;