]> git.proxmox.com Git - pve-common.git/blobdiff - test/etc_network_interfaces/runtest.pl
bump version to 8.2.1
[pve-common.git] / test / etc_network_interfaces / runtest.pl
index b5277c3b1b0350c9b448330d489dcbd3e5d5be16..10fafae15fcdbdbf0ff51c0a8685b1ac87075373 100755 (executable)
@@ -9,6 +9,7 @@ use Carp;
 use POSIX;
 use IO::Handle;
 use Storable qw(dclone);
+use JSON; # allows simple debug-dumping of variables  `print to_json($foo, {pretty => 1}) ."\n"`
 
 use PVE::INotify;
 
@@ -77,7 +78,7 @@ sub r($;$$) {
 sub w() {
     # write shouldn't be able to change a previously parsed config
     my $config_clone = dclone($config);
-    return PVE::INotify::__write_etc_network_interfaces($config_clone);
+    return PVE::INotify::__write_etc_network_interfaces($config_clone, 1);
 }
 
 ##