From 7c89d073b036a192ea6ecc51ee627e5b4802a15a Mon Sep 17 00:00:00 2001 From: mellor Date: Wed, 31 Aug 2011 13:00:18 +0000 Subject: [PATCH] use getNodeAttribs instead of getAttribs for statelite.mntopts to handle nodegroups in statelite.node git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10409 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 2 +- xCAT-server/lib/xcat/plugins/sles.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 7301a339e..f63e9fe69 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -753,7 +753,7 @@ sub mknetboot if($statelite) { my $statelitetb = xCAT::Table->new('statelite'); - my $mntopts = $statelitetb->getAttribs({node => $node}, 'mntopts'); + my $mntopts = $statelitetb->getNodeAttribs($node, ['mntopts']); my $mntoptions = $mntopts->{'mntopts'}; unless (defined($mntoptions)) diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index 8e34997bd..c580b1ac9 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -486,7 +486,7 @@ sub mknetboot if($statelite) { my $statelitetb = xCAT::Table->new('statelite'); - my $mntopts = $statelitetb->getAttribs({node => $node}, 'mntopts'); + my $mntopts = $statelitetb->getNodeAttribs($node, ['mntopts']); my $mntoptions = $mntopts->{'mntopts'}; if(defined($mntoptions))