Skip to content

Commit

Permalink
fix: correct meta host var name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Colstuwjx committed Sep 14, 2021
1 parent 9159880 commit a3f2809
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var huaweiMetadataFetcher = provider{
Local: true,

Create: func(_ string, c *common.Config) (metadataFetcher, error) {
huaweiCloudMetadataHost := "169.254.169.254"
metadataHost := "169.254.169.254"
huaweiCloudMetadataJSONURI := "/openstack/latest/meta_data.json"

huaweiCloudSchema := func(m map[string]interface{}) common.MapStr {
Expand All @@ -55,7 +55,7 @@ var huaweiMetadataFetcher = provider{
return common.MapStr{"cloud": m}
}

urls, err := getMetadataURLs(c, huaweiCloudMetadataHost, []string{
urls, err := getMetadataURLs(c, metadataHost, []string{
huaweiCloudMetadataJSONURI,
})
if err != nil {
Expand Down

0 comments on commit a3f2809

Please sign in to comment.