From cb3c233931801d00d267019743b17a5b8e87837f Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 15 Dec 2010 17:42:42 +0000 Subject: [PATCH] check must be cfgloc exists and is not empty git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8422 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 60f5225c9..ae2b4a4fd 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()) && ( -e "/etc/xcat/cfgloc")) + if ((xCAT::Utils->isServiceNode()) && ( -s "/etc/xcat/cfgloc")) { my @nodeinfo = xCAT::Utils->determinehostname; my $nodename = pop @nodeinfo; # get hostname