[pve-devel] [PATCH 1/2] Removing dead code from CT stop call and fixing typo

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Sep 1 09:59:54 CEST 2015


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/API2/LXC/Status.pm | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/PVE/API2/LXC/Status.pm b/src/PVE/API2/LXC/Status.pm
index bfd851f..14a4415 100644
--- a/src/PVE/API2/LXC/Status.pm
+++ b/src/PVE/API2/LXC/Status.pm
@@ -230,11 +230,7 @@ __PACKAGE__->register_method({
 	    my $realcmd = sub {
 		my $upid = shift;
 
-		syslog('info', "stoping CT $vmid: $upid\n");
-
-		my $conf = PVE::LXC::load_config($vmid);
-
-		my $storage_cfg = PVE::Storage::config();
+		syslog('info', "stopping CT $vmid: $upid\n");
 
 		my $cmd = ['lxc-stop', '-n', $vmid, '--kill'];
 
-- 
2.1.4




More information about the pve-devel mailing list