Skip to content

Commit

Permalink
OpenStack set default api version
Browse files Browse the repository at this point in the history
For providers without api version, we take default v2. Otherwise
UI shows blank field that is not an option

Partial fix BZ
https://bugzilla.redhat.com/show_bug.cgi?id=1278036
  • Loading branch information
Ladas committed Nov 5, 2015
1 parent 6d15896 commit 2ae4909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/ems_cloud_controller.rb
Expand Up @@ -160,7 +160,7 @@ def ems_cloud_form_fields
:provider_id => @ems.provider_id ? @ems.provider_id : "",
:hostname => @ems.hostname,
:api_port => @ems.port,
:api_version => @ems.api_version,
:api_version => @ems.api_version ? @ems.api_version : "v2",
:provider_region => @ems.provider_region,
:openstack_infra_providers_exist => retrieve_openstack_infra_providers.length > 0 ? true : false,
:default_userid => @ems.authentication_userid ? @ems.authentication_userid : "",
Expand Down

0 comments on commit 2ae4909

Please sign in to comment.