]> git.proxmox.com Git - pve-container.git/commitdiff
add 'pct pending'
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 14 Oct 2019 08:28:43 +0000 (10:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 18:44:36 +0000 (20:44 +0200)
same as 'qm pending', the code is shared via GuestHelpers

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
src/PVE/CLI/pct.pm

index 705a015dbc142c4c0185acf817803b7e0352c8e7..3a32de4d7faeeef45c478583725c1b05f98e8a8b 100755 (executable)
@@ -7,6 +7,7 @@ use POSIX;
 use Fcntl;
 use File::Copy 'copy';
 
+use PVE::GuestHelpers;
 use PVE::SafeSyslog;
 use PVE::Tools qw(extract_param);
 use PVE::CpuSet;
@@ -821,6 +822,8 @@ our $cmddef = {
                        }
                    }
                }],
+
+    pending => [ "PVE::API2::LXC", "vm_pending", ['vmid'], { node => $nodename }, \&PVE::GuestHelpers::format_pending ],
     set => [ 'PVE::API2::LXC::Config', 'update_vm', ['vmid'], { node => $nodename }],
 
     resize => [ "PVE::API2::LXC", 'resize_vm', ['vmid', 'disk', 'size'], { node => $nodename } ],