From: Wolfgang Bumiller Date: Thu, 28 Jul 2016 14:23:17 +0000 (+0200) Subject: update_lxc_config: remove unused parameter X-Git-Url: https://git.proxmox.com/?p=pve-container.git;a=commitdiff_plain;h=f91f36694f750a1aa96abd645dd07c963819ce8e update_lxc_config: remove unused parameter --- diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 1dd9405..9b92c13 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -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); }; diff --git a/src/PVE/API2/LXC/Config.pm b/src/PVE/API2/LXC/Config.pm index 8597192..fd6178b 100644 --- a/src/PVE/API2/LXC/Config.pm +++ b/src/PVE/API2/LXC/Config.pm @@ -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); diff --git a/src/PVE/API2/LXC/Status.pm b/src/PVE/API2/LXC/Status.pm index 0e0d884..83a23f5 100644 --- a/src/PVE/API2/LXC/Status.pm +++ b/src/PVE/API2/LXC/Status.pm @@ -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; diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 84f13f9..40475d0 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -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";