]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
HA/Config: add write_fence_config helper
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Jul 2016 12:41:52 +0000 (14:41 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 15 Jul 2016 09:00:26 +0000 (11:00 +0200)
We have already an helper for reading, so just add one for writingr,
it is helpful for the HW Fence API integration.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Config.pm

index 9ae8d2e4feae746d1ef689bc686430c34e5d85f3..c9aa8a53d866f409e1704db6b2de182b3837b337 100644 (file)
@@ -119,6 +119,12 @@ sub read_fence_config {
     cfs_read_file($ha_fence_config);
 }
 
+sub write_fence_config {
+    my ($cfg) = @_;
+
+    cfs_write_file($ha_fence_config, $cfg);
+}
+
 sub lock_ha_domain {
     my ($code, $errmsg) = @_;