refactor(schema): rename nested dict keys and simplify validation

This commit is contained in:
2026-02-11 05:37:18 +01:00
parent e2a42771ab
commit 636656214b
11 changed files with 80 additions and 133 deletions

View File

@@ -10,7 +10,7 @@
What is your username?
private: false
- name: system_user_public_key
- name: system_user_key
prompt: |
What is your ssh key?
private: false
@@ -40,9 +40,9 @@
'name': (
(system_user_input.name | default('') | string | length) > 0
) | ternary(system_user_input.name | string, system_user_name | default('') | string),
'public_key': (
(system_user_input.public_key | default('') | string | length) > 0
) | ternary(system_user_input.public_key | string, system_user_public_key | default('') | string),
'key': (
(system_user_input.key | default('') | string | length) > 0
) | ternary(system_user_input.key | string, system_user_key | default('') | string),
'password': (
(system_user_input.password | default('') | string | length) > 0
) | ternary(system_user_input.password | string, system_user_password | default('') | string)