From 85d0f93a1838d9b5909b96a9b05656afbb5ce4d5 Mon Sep 17 00:00:00 2001 From: Liam Young Date: Thu, 26 Mar 2020 14:47:24 +0000 Subject: [PATCH] Add request_osd_settings --- interface_ceph_client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface_ceph_client.py b/interface_ceph_client.py index 4498392..02a96fa 100755 --- a/interface_ceph_client.py +++ b/interface_ceph_client.py @@ -43,6 +43,10 @@ class CephClientRequires(Object): charm.on[relation_name].relation_changed, self.on_changed) + def request_osd_settings(self, settings): + relation = self.model.get_relation(self.relation_name) + relation.data[self.model.unit]['osd-settings'] = json.dumps(settings) + def mon_hosts(self, mon_ips): """List of all monitor host public addresses""" hosts = []