]> git.proxmox.com Git - pve-container.git/commitdiff
update_lxc_config: remove unused parameter
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 28 Jul 2016 14:23:17 +0000 (16:23 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 5 Aug 2016 08:45:14 +0000 (10:45 +0200)
src/PVE/API2/LXC.pm
src/PVE/API2/LXC/Config.pm
src/PVE/API2/LXC/Status.pm
src/PVE/LXC.pm

index 1dd94052bd3900722bbb02d452634c246d92289a..9b92c13491e5d34bbfaafa830ad2185904af2723 100644 (file)
@@ -1038,7 +1038,7 @@ __PACKAGE__->register_method({
 
            PVE::LXC::Config->write_config($vmid, $conf);
            # and remove lxc config
-           PVE::LXC::update_lxc_config(undef, $vmid, $conf);
+           PVE::LXC::update_lxc_config($vmid, $conf);
 
            return $rpcenv->fork_worker('vztemplate', $vmid, $authuser, $realcmd);
        };
index 8597192ad583c6c00fd0029da73080ccc1bc89db..fd6178bdabd1a5f067506cde6c10da51c8ce8e53 100644 (file)
@@ -139,7 +139,7 @@ __PACKAGE__->register_method({
            PVE::LXC::Config->update_pct_config($vmid, $conf, $running, $param, \@delete);
 
            PVE::LXC::Config->write_config($vmid, $conf);
-           PVE::LXC::update_lxc_config($storage_cfg, $vmid, $conf);
+           PVE::LXC::update_lxc_config($vmid, $conf);
        };
 
        PVE::LXC::Config->lock_config($vmid, $code);
index 0e0d884be0f2603e14a75a30c56e2f5bea643c64..83a23f5332a7fc4ecfd715091247449d5a707f11 100644 (file)
@@ -174,7 +174,7 @@ __PACKAGE__->register_method({
 
                    my $storage_cfg = cfs_read_file("storage.cfg");
 
-                   PVE::LXC::update_lxc_config($storage_cfg, $vmid, $conf);
+                   PVE::LXC::update_lxc_config($vmid, $conf);
 
                    local $ENV{PVE_SKIPLOCK}=1 if $skiplock;
 
index 84f13f94912b3c5295ccc4b4c1883f94d32e4beb..40475d0cc4ce8a9baefdd6f9a06da58c2337e14c 100644 (file)
@@ -326,7 +326,7 @@ sub parse_ipv4_cidr {
 
 
 sub update_lxc_config {
-    my ($storage_cfg, $vmid, $conf) = @_;
+    my ($vmid, $conf) = @_;
 
     my $dir = "/var/lib/lxc/$vmid";