osbuild: pass UID/GID as int

These were passed as strings, which is not what osbuild expects.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-06-26 12:48:49 +02:00 committed by Ondřej Budai
parent 50d469fe45
commit 8c7d8a442b
5 changed files with 13 additions and 46 deletions

View file

@ -7,8 +7,8 @@ type GroupsStageOptions struct {
func (GroupsStageOptions) isStageOptions() {}
type GroupsStageOptionsGroup struct {
Name string `json:"name"`
GID *string `json:"gid,omitempty"`
Name string `json:"name"`
GID *int `json:"gid,omitempty"`
}
func NewGroupsStage(options *GroupsStageOptions) *Stage {

View file

@ -7,8 +7,8 @@ type UsersStageOptions struct {
func (UsersStageOptions) isStageOptions() {}
type UsersStageOptionsUser struct {
UID *string `json:"uid,omitempty"`
GID *string `json:"gid,omitempty"`
UID *int `json:"uid,omitempty"`
GID *int `json:"gid,omitempty"`
Groups []string `json:"groups,omitempty"`
Description *string `json:"description,omitempty"`
Home *string `json:"home,omitempty"`