only set stating to stopping (#64)

This commit is contained in:
bmc-msft
2020-10-01 15:37:25 -04:00
committed by GitHub
parent 3e5fb4ef6f
commit e234240b36

View File

@ -225,6 +225,7 @@ class Proxy(ORMMixin):
proxy = Proxy.get(region)
if proxy is not None:
if proxy.version != __version__:
if proxy.state != VmState.stopping:
# If the proxy is out-of-date, delete and re-create it
proxy.state = VmState.stopping
proxy.save()