Commit 870fde3d by Dóbé Péter

dashboard: fix activity code checking

parent 83bf10a7
Pipeline #149 passed with stage
in 0 seconds
......@@ -46,6 +46,7 @@ from braces.views import SuperuserRequiredMixin, LoginRequiredMixin
from common.models import (
create_readable, HumanReadableException, fetch_human_exception,
from firewall.models import Vlan, Host, Rule
from manager.scheduler import SchedulerError
......@@ -798,7 +799,7 @@ def _get_activity_icon(act):
op = act.get_operation()
if op and in vm_ops:
return vm_ops[].icon
elif act.activity_code == u'vm.Instance.console-accessed':
elif split_activity_code(act.activity_code)[-1] == u'console-accessed':
return "terminal"
return "cog"
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