]> git.proxmox.com Git - qemu-server.git/commitdiff
add qm command for cloudinit config dump
authorMira Limbeck <m.limbeck@proxmox.com>
Wed, 5 Jun 2019 09:09:43 +0000 (11:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 6 Jun 2019 12:34:11 +0000 (14:34 +0200)
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>
PVE/CLI/qm.pm

index 4760375240fd3f96fa4677cb1a3d570fb55ab459..3aae23c6d2a87539aeaba5b2f60ec69e1af59d62 100755 (executable)
@@ -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;