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:
parent
c4839f0ecc
commit
ca6bc52ec7
cloudprovider
@ -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")
|
||||
}
|
||||
|
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user