Am 10.02.25 um 13:07 schrieb Daniel Herzig:
> +sub dump_cloudinit_config {
> +my ($conf, $type) = @_;
> +
> +if ($type eq 'user') {
> + return cloudinit_userdata($conf);
> +} else { # metadata config
I'd also guard this with a "$type eq 'meta'" and die for unknown types.
> + m
From: Leo Nunner
Introduce a 'pct cloudinit dump ' command to dump the
generated cloudinit configuration for a section.
Signed-off-by: Leo Nunner
---
src/PVE/API2/LXC.pm | 33 +
src/PVE/CLI/pct.pm | 4
src/PVE/LXC/Cloudinit.pm | 11 +++