mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-29 15:51:18 +00:00
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:
@@ -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"`;
|
||||
|
Reference in New Issue
Block a user