mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-28 14:18:18 +00:00
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:
parent
7370974930
commit
1e1763e9c8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user