From 5a95f481b9bbed2d0ff0162f45f144d8a7005b3a Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Fri, 3 Jan 2025 09:33:44 +0100 Subject: [PATCH 1/2] migrate answers example from yaml to json --- doc/answers_example.json | 6 ++++++ doc/answers_example.yaml | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 doc/answers_example.json delete mode 100644 doc/answers_example.yaml diff --git a/doc/answers_example.json b/doc/answers_example.json new file mode 100644 index 0000000000..a82f580064 --- /dev/null +++ b/doc/answers_example.json @@ -0,0 +1,6 @@ +{ "answers": [{ + "class": "storage.luks_activation", + "answer": "decrypt", + "password": "my_password" + }] +} diff --git a/doc/answers_example.yaml b/doc/answers_example.yaml deleted file mode 100644 index 581f39ff1d..0000000000 --- a/doc/answers_example.yaml +++ /dev/null @@ -1,3 +0,0 @@ -answers: - - class: storage.luks_activation - answer: "skip" From 842500e3c4dcd11aeb1272716988c49fad5f0c4c Mon Sep 17 00:00:00 2001 From: Martin Vidner Date: Wed, 15 Jan 2025 14:46:35 +0100 Subject: [PATCH 2/2] migrate answers example from yaml to prettified json with `python -m json.tool` --- doc/answers_example.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/answers_example.json b/doc/answers_example.json index a82f580064..266dbf2128 100644 --- a/doc/answers_example.json +++ b/doc/answers_example.json @@ -1,6 +1,9 @@ -{ "answers": [{ - "class": "storage.luks_activation", - "answer": "decrypt", - "password": "my_password" - }] +{ + "answers": [ + { + "answer": "decrypt", + "class": "storage.luks_activation", + "password": "my_password" + } + ] }