From 4c10dc573bd32174a2a86c2d884a2280f8f4bdbe Mon Sep 17 00:00:00 2001 From: ssenator Date: Sun, 2 Aug 2020 21:05:26 -0600 Subject: [PATCH] don't remove provisioned state flag file as aggressively (#18 libvirt does not always provide status?) --- clusters/common/bin/ingestvagrantstate.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clusters/common/bin/ingestvagrantstate.sh b/clusters/common/bin/ingestvagrantstate.sh index fb5f9b700..ea68e42e6 100755 --- a/clusters/common/bin/ingestvagrantstate.sh +++ b/clusters/common/bin/ingestvagrantstate.sh @@ -87,16 +87,16 @@ do ;; "nonexistent"|"not created"|"") touch ${nonexistent}/${n} - for _f in ${running}/${n} ${poweroff}/${n} ${provisioned}/${n} + for _f in ${running}/${n} ${poweroff}/${n} do if [ -f ${_f} ] ; then ${DISABLE_RM} rm -f ${_f} fi done ;; -# ### ### "") -# ### ### no_state="${no_state} ${n}" -# ### ### ;; + "") + no_state="${no_state} ${n}" + ;; *) ${DISABLE_RM} rm -f ${provisioned}/${n} ${running}/${n} ;;