From 5de4276c9cb6431379fd1fa90e2ef562276b96e2 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Tue, 8 Feb 2022 22:49:30 +0100 Subject: [PATCH] osbuild2/device: add Parent field to Device osbuild, starting with version 31, supports for nesting of devices, i.e. any device can have a parent device. See osbuild commit 45d0594 Co-Authored-By: Christian Kellner --- internal/osbuild2/device.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/osbuild2/device.go b/internal/osbuild2/device.go index b6f870b8e..a9090369b 100644 --- a/internal/osbuild2/device.go +++ b/internal/osbuild2/device.go @@ -4,6 +4,7 @@ type Devices map[string]Device type Device struct { Type string `json:"type"` + Parent string `json:"parent,omitempty"` Options DeviceOptions `json:"options,omitempty"` }