From 2259f4b7b73a4235ed62b0cb7c02e8e543c1d8b4 Mon Sep 17 00:00:00 2001 From: Dan Reading Date: Fri, 27 Sep 2013 15:27:13 -0600 Subject: [PATCH] checkinventorydrift: discard HW sets made outside of mfs mode. --- clientside/tmcc/common/checknode/gen_sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clientside/tmcc/common/checknode/gen_sql b/clientside/tmcc/common/checknode/gen_sql index 4e153d794..0c5ebaefb 100755 --- a/clientside/tmcc/common/checknode/gen_sql +++ b/clientside/tmcc/common/checknode/gen_sql @@ -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 -- GitLab