From dda4e5547096fa3827c199293ca9d9a2e89d5633 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 30 Mar 2015 10:29:18 +0300 Subject: [PATCH] fix Signed-off-by: Vasiliy Tolstov --- config/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index 3a14c06..03919c8 100644 --- a/config/config.go +++ b/config/config.go @@ -70,9 +70,9 @@ func IsCloudConfig(userdata string) bool { // string of YAML), returning any error encountered. It will ignore unknown // fields but log encountering them. func NewCloudConfig(contents string) (*CloudConfig, error) { - yaml.UnmarshalMappingKeyTransform = func(nameIn string) (nameOut string) { - return strings.Replace(nameIn, "-", "_", -1) - } + // yaml.UnmarshalMappingKeyTransform = func(nameIn string) (nameOut string) { + // return strings.Replace(nameIn, "-", "_", -1) + // } var cfg CloudConfig err := yaml.Unmarshal([]byte(contents), &cfg) return &cfg, err