Fixed lint and unit tests

This commit is contained in:
Liam Young
2014-06-23 12:07:35 +01:00
parent 361e6c8d34
commit 976146af6b
3 changed files with 11 additions and 7 deletions

View File

@@ -13,6 +13,7 @@ from charmhelpers.contrib.hahelpers.cluster import (
is_clustered
)
def context_complete(ctxt):
_missing = []
for k, v in ctxt.iteritems():
@@ -23,6 +24,7 @@ def context_complete(ctxt):
return False
return True
class ApacheSSLContext(context.ApacheSSLContext):
interfaces = ['https']
@@ -46,7 +48,8 @@ class NeutronAPIContext(context.OSContextGenerator):
ctxt = {
'neutron_url': rdata.get('neutron-url'),
'neutron_plugin': rdata.get('neutron-plugin'),
'neutron_security_groups': rdata.get('neutron-security-groups'),
'neutron_security_groups':
rdata.get('neutron-security-groups'),
'network_manager': 'neutron',
}
if context_complete(ctxt):