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
This commit is contained in:
yinle 2011-07-11 10:21:53 +00:00
parent 8a8f5b0a78
commit 3a53a2161d

View File

@ -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 #
####################