From 3a53a2161d07040614eab85dc3f5cb6dddf248fa Mon Sep 17 00:00:00 2001 From: yinle Date: Mon, 11 Jul 2011 10:21:53 +0000 Subject: [PATCH] fix the mistake that lsdef can't list hmc's username and passwd. change only_if hwtype to nodetype git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10048 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Schema.pm | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 1893c91f1..c0979766b 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -1483,25 +1483,16 @@ my @nodeattrs = ( access_tabentry => 'ppchcp.hcp=attr:node', }, {attr_name => 'username', - only_if => 'hwtype=ivm', + only_if => 'nodetype=ppc', 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', + only_if => 'nodetype=ppc', tabentry => 'ppchcp.password', access_tabentry => 'ppchcp.hcp=attr:node', }, + #################### # ppc table # ####################