Fix Openstack credential region implementation.

The injector wasn't using the same variable name as the model.
This commit is contained in:
Bill Nottingham
2021-02-12 16:44:19 -05:00
parent 67f1f9ac69
commit e93518a030
4 changed files with 6 additions and 5 deletions

View File

@@ -92,8 +92,8 @@ def _openstack_data(cred):
},
}
if cred.has_input('project_region_name'):
openstack_data['clouds']['devstack']['region_name'] = cred.get_input('project_region_name', default='')
if cred.has_input('region'):
openstack_data['clouds']['devstack']['region_name'] = cred.get_input('region', default='')
return openstack_data