public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
	Christoph Heiss <c.heiss@proxmox.com>
Subject: [pve-devel] applied: [PATCH installer v2 1/2] assistant: validate: warn if answer file contains old snake_case keys
Date: Tue, 24 Jun 2025 16:54:05 +0200	[thread overview]
Message-ID: <29692c35-e299-45e6-ac78-3763ad995440@proxmox.com> (raw)
In-Reply-To: <20250624114102.901342-1-c.heiss@proxmox.com>

Am 24.06.25 um 13:40 schrieb Christoph Heiss:
> Parses the TOML file as a `Value` without structure and then just
> iterates over all keys. An exception is made for filter values, as these
> contain raw udev key names.
> 
> Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
> ---
> v1: https://lore.proxmox.com/pve-devel/20250430112628.723073-1-c.heiss@proxmox.com/
> Changes v1 -> v2:
>   * rebased on latest master
> 
> Implements a more robust version of
> https://lore.proxmox.com/pve-devel/20250217121748.117222-6-d.kral@proxmox.com/
> by actually parsing the TOML and iterating over the keys.
> 
>  proxmox-auto-install-assistant/src/main.rs    | 71 +++++++++++++++++--
>  proxmox-auto-installer/src/answer.rs          |  4 +-
>  proxmox-auto-installer/src/utils.rs           | 12 ++--
>  .../tests/resources/parse_answer/btrfs.toml   |  4 +-
>  .../btrfs_raid_level_uppercase.toml           |  4 +-
>  .../resources/parse_answer/disk_match.toml    |  6 +-
>  .../parse_answer/disk_match_all.toml          |  6 +-
>  .../parse_answer/disk_match_any.toml          |  6 +-
>  .../resources/parse_answer/first_boot.toml    |  4 +-
>  .../parse_answer/fqdn_from_dhcp.toml          |  4 +-
>  ...cp_no_dhcp_domain_with_default_domain.toml |  4 +-
>  ...ll_fqdn_from_dhcp_with_default_domain.toml |  4 +-
>  .../parse_answer/hashed_root_password.toml    |  4 +-
>  .../tests/resources/parse_answer/minimal.toml |  4 +-
>  .../resources/parse_answer/nic_matching.toml  |  4 +-
>  .../resources/parse_answer/specific_nic.toml  |  5 +-
>  .../tests/resources/parse_answer/zfs.toml     |  6 +-
>  .../zfs_raid_level_uppercase.toml             |  6 +-
>  .../both_password_and_hashed_set.json         |  2 +-
>  .../both_password_and_hashed_set.toml         |  6 +-
>  .../fqdn_from_dhcp_no_default_domain.toml     |  4 +-
>  .../parse_answer_fail/fqdn_hostname_only.toml |  4 +-
>  .../parse_answer_fail/no_fqdn_from_dhcp.toml  |  4 +-
>  .../no_root_password_set.json                 |  2 +-
>  .../no_root_password_set.toml                 |  2 +-
>  .../parse_answer_fail/short_password.json     |  2 +-
>  .../parse_answer_fail/short_password.toml     |  4 +-
>  27 files changed, 123 insertions(+), 65 deletions(-)
> 
>

applied this one for now, waiting on your input on my reply of the second
patch, thanks!


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


      parent reply	other threads:[~2025-06-24 14:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-24 11:40 [pve-devel] " Christoph Heiss
2025-06-24 11:40 ` [pve-devel] [PATCH installer v2 2/2] [for-9.0] auto: answer: drop deprecated " Christoph Heiss
2025-06-24 14:53   ` Thomas Lamprecht
2025-06-24 14:54 ` Thomas Lamprecht [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=29692c35-e299-45e6-ac78-3763ad995440@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=c.heiss@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal