Fix bug causing install to fail as neutron-common not installed yet

This commit is contained in:
Liam Young 2014-06-23 14:37:47 +01:00
parent ede7d8ae8d
commit 5f6058e843
2 changed files with 3 additions and 1 deletions

View File

@ -83,6 +83,8 @@ def get_os_codename_install_source(src):
'''Derive OpenStack release codename from a given installation source.'''
ubuntu_rel = lsb_release()['DISTRIB_CODENAME']
rel = ''
if src is None:
return rel
if src in ['distro', 'distro-proposed']:
try:
rel = UBUNTU_OPENSTACK_RELEASE[ubuntu_rel]

View File

@ -38,7 +38,7 @@ def determine_packages():
def register_configs(release=None):
release = release or os_release('neutron-common')
release = release or os_release('neutron-common', base='icehouse')
configs = templating.OSConfigRenderer(templates_dir=TEMPLATES,
openstack_release=release)
for cfg, rscs in resource_map().iteritems():