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:
parent
50d469fe45
commit
8c7d8a442b
5 changed files with 13 additions and 46 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue