From 8a8f5b0a7874bc67a5a5276e6334ab1dbd1acdf8 Mon Sep 17 00:00:00 2001 From: yinle Date: Mon, 11 Jul 2011 09:15:16 +0000 Subject: [PATCH] fix bug 3362682: can't set username and password attribute for hmc git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10047 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Schema.pm | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 712d075a6..1893c91f1 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -1464,24 +1464,40 @@ my @nodeattrs = ( #################### {attr_name => 'username', only_if => 'nodetype=ivm', - only_if => 'hwtype=ivm', tabentry => 'ppchcp.username', access_tabentry => 'ppchcp.hcp=attr:node', }, {attr_name => 'password', only_if => 'nodetype=ivm', - only_if => 'hwtype=ivm', tabentry => 'ppchcp.password', access_tabentry => 'ppchcp.hcp=attr:node', }, {attr_name => 'username', only_if => 'nodetype=hmc', - only_if => 'hwtype=hmc', tabentry => 'ppchcp.username', access_tabentry => 'ppchcp.hcp=attr:node', }, {attr_name => 'password', only_if => 'nodetype=hmc', + tabentry => 'ppchcp.password', + access_tabentry => 'ppchcp.hcp=attr:node', + }, + {attr_name => 'username', + only_if => 'hwtype=ivm', + tabentry => 'ppchcp.username', + access_tabentry => 'ppchcp.hcp=attr:node', + }, + {attr_name => 'password', + only_if => 'hwtype=ivm', + tabentry => 'ppchcp.password', + access_tabentry => 'ppchcp.hcp=attr:node', + }, + {attr_name => 'username', + only_if => 'hwtype=hmc', + tabentry => 'ppchcp.username', + access_tabentry => 'ppchcp.hcp=attr:node', + }, + {attr_name => 'password', only_if => 'hwtype=hmc', tabentry => 'ppchcp.password', access_tabentry => 'ppchcp.hcp=attr:node',