Commit cbe33814 authored by Łukasz Nowak's avatar Łukasz Nowak

slapos_cloud: Relax OSS instance destruction conditions

Since the way of renaming the software_release_url proven to avoid having
unexpected results AND it is required in many cases to directly destroy an
instance, allow direct destruction of such instances.
parent 4620d1d0
......@@ -5,7 +5,7 @@ portal = context.getPortalObject()
if portal.portal_membership.isAnonymousUser():
raise Unauthorized("You cannot invoke this API as Annonymous")
if context.getSlapState() not in ["stop_requested"]:
if context.getSlapState() not in ["stop_requested", "start_requested"]:
return context.Base_redirect(keep_items={"portal_status_message": "This %s is on %s state and cannot be destroyed." \
% (context.getPortalType(), context.getSlapState())})
......
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