From 1f46c7938206eee9f1f5676194a60aec0244132d Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 15 Dec 2010 15:46:00 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/AAsn.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index be00455f2..60f5225c9 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -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