Replace struct initializers for TypeMeta with ObjectMeta

This commit is contained in:
Clayton Coleman
2014-10-23 16:55:58 -04:00
parent bc748fadfa
commit 7550c146dc
9 changed files with 21 additions and 19 deletions

View File

@@ -125,7 +125,7 @@ func (ops *Operations) List() *api.ServerOpList {
sort.StringSlice(ids).Sort()
ol := &api.ServerOpList{}
for _, id := range ids {
ol.Items = append(ol.Items, api.ServerOp{TypeMeta: api.TypeMeta{Name: id}})
ol.Items = append(ol.Items, api.ServerOp{ObjectMeta: api.ObjectMeta{Name: id}})
}
return ol
}