Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add openstack ssl provider in add_cloud_metadata #21590

Merged
merged 6 commits into from
Oct 7, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use a less generic name for openstack builder factory
  • Loading branch information
jsoriano committed Oct 7, 2020
commit a40fb2d4302b79925c0fee68f3319733501dbd38
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ const (
var openstackNovaMetadataFetcher = provider{
Name: "openstack-nova",
Local: true,
Create: buildCreate("http"),
Create: buildOpenstackNovaCreate("http"),
}

var openstackNovaMetadataFetcherSSL = provider{
Name: "openstack-nova-ssl",
Local: true,
Create: buildCreate("https"),
Create: buildOpenstackNovaCreate("https"),
}

func buildCreate(scheme string) func(provider string, c *common.Config) (metadataFetcher, error) {
func buildOpenstackNovaCreate(scheme string) func(provider string, c *common.Config) (metadataFetcher, error) {
return func(provider string, c *common.Config) (metadataFetcher, error) {
osSchema := func(m map[string]interface{}) common.MapStr {
return common.MapStr(m)
Expand Down