[pve-devel] [PATCH 3/8 container] cloudinit: add dump command to pct
Fiona Ebner
f.ebner at proxmox.com
Thu Feb 13 13:00:34 CET 2025
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.
> + my $user = cloudinit_userdata($conf);
> + return gen_cloudinit_metadata($user);
> + }
> +}
> +
> 1;
More information about the pve-devel
mailing list