Don't try to access the database from the service node if /etc/xcat/cfgloc file is missing

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8419 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-12-15 15:46:00 +00:00
parent 46c241fb7e
commit 1f46c79382

View File

@ -76,7 +76,7 @@ sub init_plugin
my $rc = 0;
if (xCAT::Utils->isServiceNode())
if ((xCAT::Utils->isServiceNode()) && ( -e "/etc/xcat/cfgloc"))
{
my @nodeinfo = xCAT::Utils->determinehostname;
my $nodename = pop @nodeinfo; # get hostname