---
src/PVE/API2/LXC.pm | 2 +-
src/PVE/API2/LXC/Config.pm | 2 +-
src/PVE/API2/LXC/Status.pm | 2 +-
src/PVE/LXC.pm | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
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";
--
2.1.4
_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel