feat($ip): Substitute $[public|private]_ipv4 in whole user-data

This commit is contained in:
Brian Waldon
2014-03-21 10:35:18 -07:00
parent 568714cadb
commit ddd035aaa7
8 changed files with 67 additions and 57 deletions

View File

@@ -21,9 +21,9 @@ type CloudConfig struct {
Users []system.User
}
func NewCloudConfig(contents []byte) (*CloudConfig, error) {
func NewCloudConfig(contents string) (*CloudConfig, error) {
var cfg CloudConfig
err := goyaml.Unmarshal(contents, &cfg)
err := goyaml.Unmarshal([]byte(contents), &cfg)
return &cfg, err
}