2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-06 10:18:20 +00:00

Ignore already disabled users in disable users

Some IPMI implementations would list a lot of useless
names.  Have those get ignored if 'NO ACCESS'
This commit is contained in:
Jarrod Johnson
2017-09-06 13:30:51 -04:00
parent 9cd3fac668
commit f7b210b0b8

View File

@@ -440,7 +440,7 @@ for user in $BMCUS; do
if [ "$user" = "" ]; then
continue
fi
DISABLEUSERS=$(ipmitool user list $LANCHAN|awk '{print $1}'|grep -v ID)
DISABLEUSERS=$(ipmitool user list $LANCHAN|grep -v ^ID|grep -v 'NO ACCESS$'|awk '{print $1}')
# Get the User Slots
USERSLOT=`ipmitool -d $idev user list $LANCHAN |grep -v ^ID|awk '{print $1 " " $2}'|grep -w "$BMCUS"|awk '{print $1}'`
if [ -z "$USERSLOT" ]; then