From 2be664de382aaf2400ca235bc1d82655d7fd117f Mon Sep 17 00:00:00 2001 From: Tomas Hozza Date: Mon, 19 Jul 2021 15:14:07 +0200 Subject: [PATCH] osbuild2: rename `profile_id` to `profile` in authselect stage Reflect https://github.com/osbuild/osbuild/pull/729 in osbuild-composer. Signed-off-by: Tomas Hozza --- internal/osbuild2/authselect_stage.go | 2 +- internal/osbuild2/stage_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"]}}`), }, }, {