diff --git a/internal/osbuild2/authselect_stage.go b/internal/osbuild2/authselect_stage.go index 72ed5597b..1c6c3a955 100644 --- a/internal/osbuild2/authselect_stage.go +++ b/internal/osbuild2/authselect_stage.go @@ -1,7 +1,7 @@ package osbuild2 type AuthselectStageOptions struct { - Profile string `json:"profile_id"` + Profile string `json:"profile"` Features []string `json:"features,omitempty"` } diff --git a/internal/osbuild2/stage_test.go b/internal/osbuild2/stage_test.go index 9af9b1d7f..4b4492260 100644 --- a/internal/osbuild2/stage_test.go +++ b/internal/osbuild2/stage_test.go @@ -62,7 +62,7 @@ func TestStage_UnmarshalJSON(t *testing.T) { }, }, args: args{ - data: []byte(`{"type":"org.osbuild.authselect","options":{"profile_id":"sssd"}}`), + data: []byte(`{"type":"org.osbuild.authselect","options":{"profile":"sssd"}}`), }, }, { @@ -75,7 +75,7 @@ func TestStage_UnmarshalJSON(t *testing.T) { }, }, args: args{ - data: []byte(`{"type":"org.osbuild.authselect","options":{"profile_id":"nis","features":["with-ecryptfs","with-mkhomedir"]}}`), + data: []byte(`{"type":"org.osbuild.authselect","options":{"profile":"nis","features":["with-ecryptfs","with-mkhomedir"]}}`), }, }, {