diff --git a/main.go b/main.go index 3717cff..f0aeda4 100644 --- a/main.go +++ b/main.go @@ -96,7 +96,7 @@ func processMetaData(configDriveDir string) error { } var md MetaData - err = yaml.Unmarshal(metaData, md) + err = yaml.Unmarshal(metaData, &md) if err != nil { return fmt.Errorf("could not parse meta-data file as YAML: %s", err) } @@ -123,7 +123,7 @@ func processUserData(configDriveDir string) error { } var cc CloudConfig - err = yaml.Unmarshal(userData, cc) + err = yaml.Unmarshal(userData, &cc) if err != nil { return fmt.Errorf("could not parse user-data file as YAML: %s", err) } diff --git a/main_test.go b/main_test.go new file mode 100644 index 0000000..fe557b5 --- /dev/null +++ b/main_test.go @@ -0,0 +1,8 @@ +package main + +import "testing" + +func TestProcessMetaData(T *testing.T) { + + _ = processMetaData("test") +}