Handle case where a user profile is included and the NICDEF statement is outside the profile.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7949 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2010-10-27 20:01:48 +00:00
parent 0d3e299760
commit 0291668bb0

View File

@ -2920,6 +2920,9 @@ sub nodeSet {
if ($userProfile) {
@words = split( ' ', xCAT::zvmUtils->trimStr($userProfile) );
$out = `ssh $hcp "$::DIR/getuserprofile $words[1]" | grep "NICDEF" | grep "$hcpNetName"`;
if (!$out) {
$out = `echo "$userEntry" | grep "NICDEF" | grep "$hcpNetName"`;
}
}
else {
$out = `echo "$userEntry" | grep "NICDEF" | grep "$hcpNetName"`;