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:
parent
0d3e299760
commit
0291668bb0
@ -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"`;
|
||||
|
Loading…
Reference in New Issue
Block a user