mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 11:58:09 +00:00
only set stating to stopping (#64)
This commit is contained in:
@ -225,9 +225,10 @@ class Proxy(ORMMixin):
|
|||||||
proxy = Proxy.get(region)
|
proxy = Proxy.get(region)
|
||||||
if proxy is not None:
|
if proxy is not None:
|
||||||
if proxy.version != __version__:
|
if proxy.version != __version__:
|
||||||
# If the proxy is out-of-date, delete and re-create it
|
if proxy.state != VmState.stopping:
|
||||||
proxy.state = VmState.stopping
|
# If the proxy is out-of-date, delete and re-create it
|
||||||
proxy.save()
|
proxy.state = VmState.stopping
|
||||||
|
proxy.save()
|
||||||
return None
|
return None
|
||||||
return proxy
|
return proxy
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user