From 1e1763e9c8f2e765770bfcd823d1a4cd3a999e98 Mon Sep 17 00:00:00 2001 From: Mira Limbeck Date: Wed, 5 Jun 2019 11:09:43 +0200 Subject: [PATCH] add qm command for cloudinit config dump Adds the command 'qm cloudinit dump ' where type is either 'user', 'network' or 'meta' as specified in the API. Signed-off-by: Mira Limbeck --- PVE/CLI/qm.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index 4760375..3aae23c 100755 --- a/PVE/CLI/qm.pm +++ b/PVE/CLI/qm.pm @@ -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; -- 2.39.2