Commit 2259f4b7 authored by Dan Reading's avatar Dan Reading

checkinventorydrift: discard HW sets made outside of mfs mode.

parent a180a6d1
......@@ -21,6 +21,7 @@ checkdrift_main() {
readtmcinfo $newest hwinvcopy
declare -i countsame=-1
for tocheck in $allchecks ; do
[[ $(grep 'ismfs=0' $tocheck) ]] && continue # if not in ismfs mode then don't check
readtmcinfo $tocheck hwinv
# note: will check against self for sanity
comparetmcinfo /tmp/.$$checkdiff
......@@ -40,12 +41,12 @@ checkdrift_main() {
# sudo mv $tocheck $projdir/$host/.tbdb/.notsame
# XXX - end
else
# echo "$host $newest $tocheck SAME"
: # echo "$host $newest $tocheck SAME"
((countsame++))
fi
rm -f /tmp/.$$checkdiff
done
: # echo "$host $countsame inventory files are the same"
: # echo "$host $countsame inventory files are the same"
else
echo "No record of node id \"$host\"."
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment