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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user