yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #27592
[Bug 1417808] [NEW] Fix extra indention in firewall views.py code
Public bug reported:
It is not obvious in here, but there are 8 spaces instead of 4 space in
the indent of the code inside the method
https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/firewalls/views.py#L175
@memoized.memoized_method
def _get_object(self, *args, **kwargs):
policy_id = self.kwargs['policy_id']
try:
policy = api.fwaas.policy_get(self.request, policy_id)
return policy
except Exception:
redirect = self.success_url
msg = _('Unable to retrieve policy details.')
exceptions.handle(self.request, msg, redirect=redirect)
** Affects: horizon
Importance: Undecided
Assignee: Lin Hua Cheng (lin-hua-cheng)
Status: In Progress
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1417808
Title:
Fix extra indention in firewall views.py code
Status in OpenStack Dashboard (Horizon):
In Progress
Bug description:
It is not obvious in here, but there are 8 spaces instead of 4 space
in the indent of the code inside the method
https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/firewalls/views.py#L175
@memoized.memoized_method
def _get_object(self, *args, **kwargs):
policy_id = self.kwargs['policy_id']
try:
policy = api.fwaas.policy_get(self.request, policy_id)
return policy
except Exception:
redirect = self.success_url
msg = _('Unable to retrieve policy details.')
exceptions.handle(self.request, msg, redirect=redirect)
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1417808/+subscriptions
Follow ups
References