mirror of
https://github.com/rancher/rke.git
synced 2025-08-19 23:37:48 +00:00
Fix cloud provider config password with hashtag
This commit is contained in:
parent
c4839f0ecc
commit
ca6bc52ec7
@ -42,7 +42,7 @@ func (p *CloudProvider) GenerateCloudConfigFile() (string, error) {
|
|||||||
}
|
}
|
||||||
// Generate INI style configuration
|
// Generate INI style configuration
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
cloudConfig := ini.Empty()
|
cloudConfig, _ := ini.LoadSources(ini.LoadOptions{IgnoreInlineComment: true}, []byte(""))
|
||||||
if err := ini.ReflectFrom(cloudConfig, p.Config); err != nil {
|
if err := ini.ReflectFrom(cloudConfig, p.Config); err != nil {
|
||||||
return "", fmt.Errorf("Failed to parse Openstack cloud config")
|
return "", fmt.Errorf("Failed to parse Openstack cloud config")
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ func (p *CloudProvider) GetName() string {
|
|||||||
func (p *CloudProvider) GenerateCloudConfigFile() (string, error) {
|
func (p *CloudProvider) GenerateCloudConfigFile() (string, error) {
|
||||||
// Generate INI style configuration
|
// Generate INI style configuration
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
cloudConfig := ini.Empty()
|
cloudConfig, _ := ini.LoadSources(ini.LoadOptions{IgnoreInlineComment: true}, []byte(""))
|
||||||
if err := ini.ReflectFrom(cloudConfig, p.Config); err != nil {
|
if err := ini.ReflectFrom(cloudConfig, p.Config); err != nil {
|
||||||
return "", fmt.Errorf("Failed to parse Openstack cloud config")
|
return "", fmt.Errorf("Failed to parse Openstack cloud config")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user