← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1399857] [NEW] endpoint_policy has typo in delete

 

Public bug reported:

When activating the endpoint_policy extension, and then deleting a
policy file, get the following error:

keystoneclient.openstack.common.apiclient.exceptions.InternalServerError:
An unexpected error prevented the server from fulfilling your request:
'EndpointPolicy' object has no attribute 'delete_association_by_polcy'
(Disable debug mode to suppress these details.) (HTTP 500)


There is a typo in the controller that can be fixed by this change.

diff --git a/keystone/contrib/endpoint_policy/controllers.py b/keystone/contrib/endpoint_policy/controllers.py
index c1533f7..569fe9b 100644
--- a/keystone/contrib/endpoint_policy/controllers.py
+++ b/keystone/contrib/endpoint_policy/controllers.py
@@ -46,7 +46,7 @@ class EndpointPolicyV3Controller(controller.V3Controller):
             payload['resource_info'])
 
     def _on_policy_delete(self, service, resource_type, operation, payload):
-        self.endpoint_policy_api.delete_association_by_polcy(
+        self.endpoint_policy_api.delete_association_by_policy(
             payload['resource_info'])

** Affects: keystone
     Importance: Undecided
     Assignee: Adam Young (ayoung)
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1399857

Title:
  endpoint_policy has typo in delete

Status in OpenStack Identity (Keystone):
  In Progress

Bug description:
  When activating the endpoint_policy extension, and then deleting a
  policy file, get the following error:

  keystoneclient.openstack.common.apiclient.exceptions.InternalServerError:
  An unexpected error prevented the server from fulfilling your request:
  'EndpointPolicy' object has no attribute 'delete_association_by_polcy'
  (Disable debug mode to suppress these details.) (HTTP 500)

  
  There is a typo in the controller that can be fixed by this change.

  diff --git a/keystone/contrib/endpoint_policy/controllers.py b/keystone/contrib/endpoint_policy/controllers.py
  index c1533f7..569fe9b 100644
  --- a/keystone/contrib/endpoint_policy/controllers.py
  +++ b/keystone/contrib/endpoint_policy/controllers.py
  @@ -46,7 +46,7 @@ class EndpointPolicyV3Controller(controller.V3Controller):
               payload['resource_info'])
   
       def _on_policy_delete(self, service, resource_type, operation, payload):
  -        self.endpoint_policy_api.delete_association_by_polcy(
  +        self.endpoint_policy_api.delete_association_by_policy(
               payload['resource_info'])

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1399857/+subscriptions


Follow ups

References