* [pve-devel] [PATCH installer] auto-installer: support UTC as timezone
@ 2024-04-23 11:29 Christoph Heiss
2024-04-23 14:32 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Heiss @ 2024-04-23 11:29 UTC (permalink / raw)
To: pve-devel
Reported-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
proxmox-auto-installer/src/utils.rs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/proxmox-auto-installer/src/utils.rs b/proxmox-auto-installer/src/utils.rs
index 02c27d8..1912e51 100644
--- a/proxmox-auto-installer/src/utils.rs
+++ b/proxmox-auto-installer/src/utils.rs
@@ -280,13 +280,16 @@ pub fn verify_locale_settings(answer: &Answer, locales: &LocaleInfo) -> Result<(
if !locales.kmap.keys().any(|i| i == &answer.global.keyboard) {
bail!("keyboard layout '{}' is not valid", &answer.global.keyboard);
}
+
if !locales
.cczones
.iter()
.any(|(_, zones)| zones.contains(&answer.global.timezone))
+ && answer.global.timezone != "UTC"
{
bail!("timezone '{}' is not valid", &answer.global.timezone);
}
+
Ok(())
}
--
2.44.0
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH installer] auto-installer: support UTC as timezone
2024-04-23 11:29 [pve-devel] [PATCH installer] auto-installer: support UTC as timezone Christoph Heiss
@ 2024-04-23 14:32 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2024-04-23 14:32 UTC (permalink / raw)
To: Proxmox VE development discussion, Christoph Heiss
Am 23/04/2024 um 13:29 schrieb Christoph Heiss:
> Reported-by: Fiona Ebner <f.ebner@proxmox.com>
> Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
> ---
> proxmox-auto-installer/src/utils.rs | 3 +++
> 1 file changed, 3 insertions(+)
>
>
applied, thanks!
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-23 14:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-23 11:29 [pve-devel] [PATCH installer] auto-installer: support UTC as timezone Christoph Heiss
2024-04-23 14:32 ` [pve-devel] applied: " Thomas Lamprecht
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal