From: "Shannon Sterz" <s.sterz@proxmox.com>
To: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>,
pdm-devel@lists.proxmox.com
Subject: Re: [PATCH datacenter-manager] ui: auto-installer: use empty string as default fqdn
Date: Tue, 26 May 2026 11:16:04 +0200 [thread overview]
Message-ID: <DISHTOAMLCCL.26UYTZ9FFDYIM@proxmox.com> (raw)
In-Reply-To: <1779786372.iogkid8ktf.astroid@yuna.none>
On Tue May 26, 2026 at 11:08 AM CEST, Fabian Grünbichler wrote:
> On May 22, 2026 4:46 pm, Shannon Sterz wrote:
>> to avoid users not setting this value themselves, as otherwise
>> "host.example.com" would be set as default fqdn for an answer file
>> config.
>>
>> Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
>> ---
>> ui/src/remotes/auto_installer/prepared_answer_add_wizard.rs | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/ui/src/remotes/auto_installer/prepared_answer_add_wizard.rs b/ui/src/remotes/auto_installer/prepared_answer_add_wizard.rs
>> index f1b443e..64d746f 100644
>> --- a/ui/src/remotes/auto_installer/prepared_answer_add_wizard.rs
>> +++ b/ui/src/remotes/auto_installer/prepared_answer_add_wizard.rs
>> @@ -55,7 +55,7 @@ impl AddAnswerWizardProperties {
>> target_filter: BTreeMap::new(),
>> // global options
>> country: "at".to_owned(),
>> - fqdn: "host.example.com".to_owned(),
>> + fqdn: String::new(),
>
> this looks okay to me, though I wonder whether it wouldn't be better to
> either default to
>
>> use_dhcp_fqdn: false,
>
> this, or use the placeholder with the template vars as default value but
> do not accept it as valid?
the placeholder with a template vars is already set in the ui here [1]
as a proper placeholder (e.g. greyed-out; only shown when the field is
empty). so setting an empty value here exposes this placeholder to the
user and also mark the corresponding field as empty -> users get a
validation error if they try to proceed without changing it.
this approach also has the advantage of not special casing a specific
value.
sorry this could have been clearer in my commit message above.
[1]: https://git.proxmox.com/?p=proxmox-datacenter-manager.git;a=blob;f=ui/src/remotes/auto_installer/prepared_answer_form.rs;h=72d2856e33ac2759168cf0a4a56a7acd403f41d3;hb=HEAD#l328
>> keyboard: answer::KeyboardLayout::default(),
>> mailto: String::new(),
>> --
>> 2.47.3
>>
>>
>>
>>
>>
>>
next prev parent reply other threads:[~2026-05-26 9:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-22 14:46 [PATCH datacenter-manager] ui: auto-installer: use empty string as default fqdn Shannon Sterz
2026-05-26 9:08 ` Fabian Grünbichler
2026-05-26 9:16 ` Shannon Sterz [this message]
2026-05-26 11:34 ` Shannon Sterz
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=DISHTOAMLCCL.26UYTZ9FFDYIM@proxmox.com \
--to=s.sterz@proxmox.com \
--cc=f.gruenbichler@proxmox.com \
--cc=pdm-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