[pve-devel] [PATCH v3 ha-manager 2/9] Add update_service_config to HA environment interface

Fabian Ebner f.ebner at proxmox.com
Wed Oct 2 11:46:03 CEST 2019


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 src/PVE/HA/Env.pm      | 6 ++++++
 src/PVE/HA/Env/PVE2.pm | 6 ++++++
 src/PVE/HA/Sim/Env.pm  | 6 ++++++
 3 files changed, 18 insertions(+)

diff --git a/src/PVE/HA/Env.pm b/src/PVE/HA/Env.pm
index bb37486..ac569a9 100644
--- a/src/PVE/HA/Env.pm
+++ b/src/PVE/HA/Env.pm
@@ -87,6 +87,12 @@ sub read_service_config {
     return $self->{plug}->read_service_config();
 }
 
+sub update_service_config {
+    my ($self, $sid, $param) = @_;
+
+    return $self->{plug}->update_service_config($sid, $param);
+}
+
 sub parse_sid {
     my ($self, $sid) = @_;
 
diff --git a/src/PVE/HA/Env/PVE2.pm b/src/PVE/HA/Env/PVE2.pm
index 796acd9..83145dc 100644
--- a/src/PVE/HA/Env/PVE2.pm
+++ b/src/PVE/HA/Env/PVE2.pm
@@ -120,6 +120,12 @@ sub read_service_config {
     return PVE::HA::Config::read_and_check_resources_config();
 }
 
+sub update_service_config {
+    my ($self, $sid, $param) = @_;
+
+    return PVE::HA::Config::update_resources_config($sid, $param);
+}
+
 sub parse_sid {
     my ($self, $sid) = @_;
 
diff --git a/src/PVE/HA/Sim/Env.pm b/src/PVE/HA/Sim/Env.pm
index 22e13e6..b286708 100644
--- a/src/PVE/HA/Sim/Env.pm
+++ b/src/PVE/HA/Sim/Env.pm
@@ -203,6 +203,12 @@ sub read_service_config {
     return $self->{hardware}->read_service_config();
 }
 
+sub update_service_config {
+    my ($self, $sid, $param) = @_;
+
+    return $self->{hardware}->update_service_config($sid, $param);
+}
+
 sub parse_sid {
     my ($self, $sid) = @_;
 
-- 
2.20.1





More information about the pve-devel mailing list