[pve-devel] [PATCH manager 08/20] ceph: add update_storage helper

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Aug 25 10:48:10 CEST 2017


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 PVE/API2/Ceph.pm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index e7df80a2..7aee4b66 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -805,6 +805,16 @@ my $get_storages = sub {
     return $res;
 };
 
+my $update_storage = sub {
+    my ($storeid, $monhosts) = @_;
+    my $params = {
+	storage => $storeid,
+	monhost => $monhosts,
+    };
+
+    PVE::API2::Storage::Config->update($params);
+};
+
 __PACKAGE__->register_method ({
     name => 'listmon',
     path => 'mon',
-- 
2.11.0





More information about the pve-devel mailing list