Add config and verbose to the context

This commit is contained in:
Liam Young 2014-06-17 13:06:09 +01:00
parent 187386b327
commit 8199af8fc1

View File

@ -35,6 +35,8 @@ class NeutronCCContext(context.NeutronContext):
def __call__(self):
ctxt = super(NeutronCCContext, self).__call__()
ctxt['external_network'] = config('neutron-external-network')
ctxt['verbose'] = config('verbose')
ctxt['debug'] = config('debug')
for rid in relation_ids('neutron-api'):
for unit in related_units(rid):
ctxt['nova_url'] = relation_get(attribute='nova_url', rid=rid, unit=unit)