Merge "Fix create/update keystone endpoint with service name"

This commit is contained in:
Jenkins 2016-09-30 17:32:30 +00:00 committed by Gerrit Code Review
commit 388c1dcb4f
1 changed files with 12 additions and 0 deletions

View File

@ -16,6 +16,7 @@ from heat.engine import constraints
from heat.engine import properties
from heat.engine import resource
from heat.engine import support
from heat.engine import translation
class KeystoneEndpoint(resource.Resource):
@ -83,6 +84,17 @@ class KeystoneEndpoint(resource.Resource):
)
}
def translation_rules(self, props):
return [
translation.TranslationRule(
props,
translation.TranslationRule.RESOLVE,
[self.SERVICE],
client_plugin=self.client_plugin(),
finder='get_service_id'
)
]
def client(self):
return super(KeystoneEndpoint, self).client().client