From d868494a50d863bf4df27c806ee009c645f98941 Mon Sep 17 00:00:00 2001 From: yinle Date: Mon, 27 Jun 2011 13:09:59 +0000 Subject: [PATCH] change setting nodetype.nodetype to node's type into setting nodetype.nodetype to 'ppc' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9951 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCdb.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/PPCdb.pm b/perl-xCAT/xCAT/PPCdb.pm index 3611846ec..aede40b16 100644 --- a/perl-xCAT/xCAT/PPCdb.pm +++ b/perl-xCAT/xCAT/PPCdb.pm @@ -95,7 +95,7 @@ sub add_ppc { # Update nodetype table ############################### if ( $type =~ /^(fsp|bpa|lpar|hmc|ivm|frame|cec)$/ ) { - $db{nodetype}->setNodeAttribs( $name,{nodetype=>$nodetype{$type}} ); + $db{nodetype}->setNodeAttribs( $name,{nodetype=>'ppc'} ); $db{nodetype}{commit} = 1; } ############################### @@ -456,6 +456,7 @@ sub update_node_attribs $id ne $ppchash->{id} or $pprofile ne $ppchash->{pprofile} or $parent ne $ppchash->{parent} or + $type ne $ppchash->{nodetype} or $namediff) { $db->{ppc}->delEntries( $key_col) if ( $namediff); @@ -463,7 +464,8 @@ sub update_node_attribs { hcp=>$server, id=>$id, pprofile=>$pprofile, - parent=>$parent + parent=>$parent, + nodetype=>$type, }); if ( $namediff) {