check for AIX before calling getnimprime.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6224 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2010-05-25 18:20:36 +00:00
parent dff1f51066
commit 7fd7a87f92

View File

@ -3351,10 +3351,13 @@ sub get_ServiceNode
my $master =
xCAT::Utils->get_site_Master(); # read the site table, master attrib
# for AIX nodes the NIM primary will be either the site.NIMprime attr
# or, if not set, the site.master attr
my $nimprime = xCAT::InstUtils->getnimprime();
chomp $nimprime;
my $nimprime;
if (xCAT::Utils->isAIX()) {
# for AIX nodes the NIM primary will be either the site.NIMprime attr
# or, if not set, the site.master attr
$nimprime = xCAT::InstUtils->getnimprime();
chomp $nimprime;
}
$noderestab = xCAT::Table->new('noderes');
$nodetab = xCAT::Table->new('nodetype');