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
This commit is contained in:
lissav 2010-12-15 17:42:42 +00:00
parent b751f62376
commit cb3c233931

View File

@ -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