Commit 3cd551b6 by Kálmán Viktor

dashboard: fix save resources button

parent c86f5ba1
......@@ -174,10 +174,10 @@ class VmDetailView(GraphMixin, CheckedDetailView):
context['is_owner'] = is_owner
# operation also allows RUNNING (if with_shutdown is present)
context['save_resources_enabled'] = instance.status not in (
"RUNNING",
context['save_resources_enabled'] = instance.status in (
"STOPPED",
"PENDING",
"SUSPENDED")
)
return context
......
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 sign in to comment