add qm command for cloudinit config dump

Adds the command 'qm cloudinit dump <vmid> <type>' where type is either
'user', 'network' or 'meta' as specified in the API.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
This commit is contained in:
Mira Limbeck 2019-06-05 11:09:43 +02:00 committed by Thomas Lamprecht
parent 7370974930
commit 1e1763e9c8

View File

@ -1023,6 +1023,13 @@ our $cmddef = {
cleanup => [ __PACKAGE__, 'cleanup', ['vmid', 'clean-shutdown', 'guest-requested'], { node => $nodename }],
cloudinit => {
dump => [ "PVE::API2::Qemu", 'cloudinit_generated_config_dump', ['vmid', 'type'], { node => $nodename }, sub {
my $data = shift;
print "$data\n";
}],
},
};
1;