Fix sharedsecret context bug looking for wrong param

This commit is contained in:
Liam Young 2015-09-08 15:52:52 +01:00
parent b07b9bb64b
commit a50e1024df
1 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,8 @@ def get_shared_secret():
class SharedSecretContext(OSContextGenerator):
def __call__(self):
if NeutronAPIContext()()['enable_dvr'] or config('enable-metadata'):
if NeutronAPIContext()()['enable_dvr'] or \
config('enable-local-dhcp-and-metadata'):
ctxt = {
'shared_secret': get_shared_secret(),
'local_ip': resolve_address(),