1
0
mirror of https://github.com/rancher/rke.git synced 2025-05-10 17:35:03 +00:00

Fix cloud provider config password with hashtag

This commit is contained in:
brudnyhenry 2019-04-27 13:03:30 +02:00 committed by Alena Prokharchyk
parent c4839f0ecc
commit ca6bc52ec7
2 changed files with 2 additions and 2 deletions
cloudprovider
aws
openstack

View File

@ -42,7 +42,7 @@ func (p *CloudProvider) GenerateCloudConfigFile() (string, error) {
}
// Generate INI style configuration
buf := new(bytes.Buffer)
cloudConfig := ini.Empty()
cloudConfig, _ := ini.LoadSources(ini.LoadOptions{IgnoreInlineComment: true}, []byte(""))
if err := ini.ReflectFrom(cloudConfig, p.Config); err != nil {
return "", fmt.Errorf("Failed to parse Openstack cloud config")
}

View File

@ -40,7 +40,7 @@ func (p *CloudProvider) GetName() string {
func (p *CloudProvider) GenerateCloudConfigFile() (string, error) {
// Generate INI style configuration
buf := new(bytes.Buffer)
cloudConfig := ini.Empty()
cloudConfig, _ := ini.LoadSources(ini.LoadOptions{IgnoreInlineComment: true}, []byte(""))
if err := ini.ReflectFrom(cloudConfig, p.Config); err != nil {
return "", fmt.Errorf("Failed to parse Openstack cloud config")
}