summaryrefslogtreecommitdiff
path: root/PVE/Network/SDN/Controllers.pm
diff options
context:
space:
mode:
Diffstat (limited to 'PVE/Network/SDN/Controllers.pm')
-rw-r--r--PVE/Network/SDN/Controllers.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/PVE/Network/SDN/Controllers.pm b/PVE/Network/SDN/Controllers.pm
index 16c664d..91a74d8 100644
--- a/PVE/Network/SDN/Controllers.pm
+++ b/PVE/Network/SDN/Controllers.pm
@@ -32,7 +32,7 @@ sub sdn_controllers_config {
}
sub config {
- my $config = cfs_read_file("sdn/controllers.cfg.new");
+ my $config = cfs_read_file("sdn/controllers.cfg");
$config = cfs_read_file("sdn/controllers.cfg") if !keys %{$config->{ids}};
return $config;
}
@@ -40,13 +40,13 @@ sub config {
sub write_config {
my ($cfg) = @_;
- cfs_write_file("sdn/controllers.cfg.new", $cfg);
+ cfs_write_file("sdn/controllers.cfg", $cfg);
}
sub lock_sdn_controllers_config {
my ($code, $errmsg) = @_;
- cfs_lock_file("sdn/controllers.cfg.new", undef, $code);
+ cfs_lock_file("sdn/controllers.cfg", undef, $code);
if (my $err = $@) {
$errmsg ? die "$errmsg: $err" : die $err;
}