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