File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ func processMetaData(configDriveDir string) error {
96
96
}
97
97
98
98
var md MetaData
99
- err = yaml .Unmarshal (metaData , md )
99
+ err = yaml .Unmarshal (metaData , & md )
100
100
if err != nil {
101
101
return fmt .Errorf ("could not parse meta-data file as YAML: %s" , err )
102
102
}
@@ -123,7 +123,7 @@ func processUserData(configDriveDir string) error {
123
123
}
124
124
125
125
var cc CloudConfig
126
- err = yaml .Unmarshal (userData , cc )
126
+ err = yaml .Unmarshal (userData , & cc )
127
127
if err != nil {
128
128
return fmt .Errorf ("could not parse user-data file as YAML: %s" , err )
129
129
}
Original file line number Diff line number Diff line change
1
+ package main
2
+
3
+ import "testing"
4
+
5
+ func TestProcessMetaData (T * testing.T ) {
6
+
7
+ _ = processMetaData ("test" )
8
+ }
You can’t perform that action at this time.
0 commit comments