diff --git a/fixtures/update-engine/update/request.xml b/fixtures/update-engine/update/request.xml index f413143..c79be35 100644 --- a/fixtures/update-engine/update/request.xml +++ b/fixtures/update-engine/update/request.xml @@ -1,7 +1,7 @@ - + diff --git a/omaha/omaha.go b/omaha/omaha.go index 492398c..1aa2a97 100644 --- a/omaha/omaha.go +++ b/omaha/omaha.go @@ -84,9 +84,9 @@ type App struct { FromTrack string `xml:"from_track,attr,omitempty"` // coreos update engine extensions - BootId string `xml:"bootid,attr,omitempty"` - PreviousBootId string `xml:"previousbootid,attr,omitempty"` - OEM string `xml:"oem,attr,omitempty"` + BootId string `xml:"bootid,attr,omitempty"` + MachineID string `xml:"machineid,attr,omitempty"` + OEM string `xml:"oem,attr,omitempty"` } func NewApp(id string) *App { diff --git a/omaha/omaha_test.go b/omaha/omaha_test.go index 9eb792d..5a3eae4 100644 --- a/omaha/omaha_test.go +++ b/omaha/omaha_test.go @@ -32,8 +32,8 @@ func TestOmahaRequestUpdateCheck(t *testing.T) { t.Error("Expected a Boot Id") } - if v.Apps[0].PreviousBootId != "{8BDE4C4D-9083-4D61-B41C-3253212C0C37}" { - t.Error("Expected a Previous Boot Id") + if v.Apps[0].MachineID != "{8BDE4C4D-9083-4D61-B41C-3253212C0C37}" { + t.Error("Expected a MachineId") } if v.Apps[0].OEM != "ec3000" {