Add request_osd_settings
This commit is contained in:
parent
93b4661be1
commit
85d0f93a18
@ -43,6 +43,10 @@ class CephClientRequires(Object):
|
|||||||
charm.on[relation_name].relation_changed,
|
charm.on[relation_name].relation_changed,
|
||||||
self.on_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):
|
def mon_hosts(self, mon_ips):
|
||||||
"""List of all monitor host public addresses"""
|
"""List of all monitor host public addresses"""
|
||||||
hosts = []
|
hosts = []
|
||||||
|
Loading…
Reference in New Issue
Block a user