added database type

This commit is contained in:
yolanda.robla@canonical.com
2014-03-20 10:31:25 +01:00
parent 4ed0e0560b
commit 70e61d50fd
7 changed files with 17 additions and 6 deletions

View File

@@ -163,3 +163,14 @@ class IdentityServiceContext(context.IdentityServiceContext):
ctxt['service_port'])
ctxt['keystone_ec2_url'] = ec2_tokens
return ctxt
class SharedDBContext(context.SharedDBContext):
interfaces = ['shared-db']
def __call__(self):
# add database type
ctxt = super(SharedDBContext, self).__call__()
ctxt['database_type'] = 'mysql'
return ctxt