From f2e934dc77a236a9b8028b3d62ef45fabb19b07e Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 18 Mar 2011 05:32:28 +0000 Subject: [PATCH] Move the process of finding CEC/Frame node's password to xCAT::PPCdb::credentials so that it will influence other commands. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9081 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPUtils.pm | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/perl-xCAT/xCAT/FSPUtils.pm b/perl-xCAT/xCAT/FSPUtils.pm index 04a7359c1..25e21421b 100644 --- a/perl-xCAT/xCAT/FSPUtils.pm +++ b/perl-xCAT/xCAT/FSPUtils.pm @@ -143,19 +143,7 @@ sub fsp_api_action { } else { $tmp_node = $fsp_name; } - - # find parent for fsp/bpa, use parent's attributes first. - my $ntype = xCAT::DBobjUtils->getnodetype($tmp_node); - if ($ntype =~ /^(fsp|bpa)$/) { - my $ptab = xCAT::Table->new('ppc'); - if ($ptab) { - my $parent = $ptab->getNodeAttribs($tmp_node, ["parent"]); - if ($parent and $parent->{parent}) { - $tmp_node = $parent->{parent}; - } - } - } - + ($user, $password) = xCAT::PPCdb::credentials( $tmp_node, $fsp_bpa_type,'HMC'); if ( !$password) { $res = "Cannot get password of userid 'HMC'. Please check table 'passwd' or 'ppcdirect'.";