mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	Fix bug 3215523:FSP attr should change when CEC attr is modified. Change the process of finding fsp/bpa's password.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9061 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -143,6 +143,19 @@ 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'."; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user