From 077a250d7e09d8c6541ebf90929b33a1ae9c9a25 Mon Sep 17 00:00:00 2001 From: zhurong Date: Wed, 28 Aug 2019 13:47:51 +0800 Subject: [PATCH] Remove the unused code Change-Id: Iea78e30c7b764b8854d6c83cb369554b8133e29b --- watcher_dashboard/content/action_plans/views.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/watcher_dashboard/content/action_plans/views.py b/watcher_dashboard/content/action_plans/views.py index c64fcde..711de29 100644 --- a/watcher_dashboard/content/action_plans/views.py +++ b/watcher_dashboard/content/action_plans/views.py @@ -127,17 +127,6 @@ class DetailView(horizon.tables.MultiTableView): return efficacy_indicators - try: - action_plan = self._get_data() - actions = watcher.Action.list(self.request, - action_plan=action_plan.uuid) - except Exception as exc: - LOG.exception(exc) - actions = [] - msg = _('Action list can not be retrieved.') - horizon.exceptions.handle(self.request, msg) - return actions - def get_context_data(self, **kwargs): context = super(DetailView, self).get_context_data(**kwargs) action_plan = self._get_data()