]> git.proxmox.com Git - pve-guest-common.git/commitdiff
cleanup: ReplicationConfig: be specific about write_config
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 14 May 2018 11:51:24 +0000 (13:51 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 14 May 2018 11:51:26 +0000 (13:51 +0200)
Since it doesn't write but returns the text to be written,
let's be specific about the fact that we're returning a
value.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/ReplicationConfig.pm

index eb98f78f1a304691e1a356d85a7b4de3febf7cf9..d597799308e045a076ee5ee36c06c08cec5d06c2 100644 (file)
@@ -170,7 +170,7 @@ sub write_config {
            if defined($data->{comment});
     }
 
-    $class->SUPER::write_config($filename, $cfg);
+    return $class->SUPER::write_config($filename, $cfg);
 }
 
 sub new {