Merge pull request #64 from philips/no-quotes-on-oem-id-or-version
fix(initialize): don't quote version or ID
This commit is contained in:
commit
f779a3f7f5
@ -18,9 +18,9 @@ type OEMRelease struct {
|
|||||||
|
|
||||||
func (oem *OEMRelease) String() string {
|
func (oem *OEMRelease) String() string {
|
||||||
fields := []string{
|
fields := []string{
|
||||||
fmt.Sprintf("ID=%q", oem.ID),
|
fmt.Sprintf("ID=%s", oem.ID),
|
||||||
|
fmt.Sprintf("VERSION_ID=%s", oem.VersionID),
|
||||||
fmt.Sprintf("NAME=%q", oem.Name),
|
fmt.Sprintf("NAME=%q", oem.Name),
|
||||||
fmt.Sprintf("VERSION_ID=%q", oem.VersionID),
|
|
||||||
fmt.Sprintf("HOME_URL=%q", oem.HomeURL),
|
fmt.Sprintf("HOME_URL=%q", oem.HomeURL),
|
||||||
fmt.Sprintf("BUG_REPORT_URL=%q", oem.BugReportURL),
|
fmt.Sprintf("BUG_REPORT_URL=%q", oem.BugReportURL),
|
||||||
}
|
}
|
||||||
|
@ -42,9 +42,9 @@ func TestOEMReleaseWrittenToDisk(t *testing.T) {
|
|||||||
t.Fatalf("Unable to read expected file: %v", err)
|
t.Fatalf("Unable to read expected file: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
expect := `ID="rackspace"
|
expect := `ID=rackspace
|
||||||
|
VERSION_ID=168.0.0
|
||||||
NAME="Rackspace Cloud Servers"
|
NAME="Rackspace Cloud Servers"
|
||||||
VERSION_ID="168.0.0"
|
|
||||||
HOME_URL="https://www.rackspace.com/cloud/servers/"
|
HOME_URL="https://www.rackspace.com/cloud/servers/"
|
||||||
BUG_REPORT_URL="https://github.com/coreos/coreos-overlay"
|
BUG_REPORT_URL="https://github.com/coreos/coreos-overlay"
|
||||||
`
|
`
|
||||||
|
Loading…
Reference in New Issue
Block a user