From 7246f8fdd5fa130c2713d0ae53da190b11a8163d Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Mon, 22 Aug 2022 12:52:33 +0200 Subject: [PATCH] osbuild: fix base Mount struct properties Source and Target are not required -> omitempty Options is of type MountOptions which is an interface, so we don't need to make it a pointer. --- internal/osbuild/mount.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/osbuild/mount.go b/internal/osbuild/mount.go index 3aed31db1..8b5f7fcca 100644 --- a/internal/osbuild/mount.go +++ b/internal/osbuild/mount.go @@ -3,11 +3,11 @@ package osbuild type Mounts []Mount type Mount struct { - Name string `json:"name"` - Type string `json:"type"` - Source string `json:"source"` - Target string `json:"target"` - Options *MountOptions `json:"options,omitempty"` + Name string `json:"name"` + Type string `json:"type"` + Source string `json:"source,omitempty"` + Target string `json:"target,omitempty"` + Options MountOptions `json:"options,omitempty"` } type MountOptions interface {