Commit 7aa47383 authored by Romain Courteaud's avatar Romain Courteaud 🐙

slapos_cloud: bypass a cache issue caused by the auto stop alarm

parent 502080e2
......@@ -44,3 +44,9 @@ if (instance_tree.getSlapState() == "stop_requested"):
state="stopped",
comment="Stop collect %s" % instance.getRelativeUrl()
)
# reset request cache
# It is required to allow requested to start the instance again
# XXX TODO: the cache handling must be fixed, as it is spreaded
# in multiple places, which probably means there are other bugs like this
if requester.getPortalType() == 'Software Instance':
requester.setLastData({}, key='_'.join([requester.getRelativeUrl(), instance.getTitle()]))
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