bthomasChipaca is there a self.peer_set(<peer-data>) function in OPS ?09:26
Chipacabthomas: no09:26
bthomasAh ok. So looks like i am misunderstanding what jam was saying on charmelot. Seems like that was a exploratory suggestion.09:27
facubatista¡Muy buenos días a todos!10:52
Chipacafacubatista: [citation needed]10:58
facubatistahola Chipaca!10:58
Chipacafacubatista: q'acelga caezn10:58
facubatistaChipaca, acá me ando10:58
Chipacafacubatista: guarda con los cables10:58
facubatista*sparks of joy*10:59
* Chipaca LOLs10:59
Chipacafacubatista: are we doing the bug revue today? otherwise i'll get me some lunch10:59
facubatistaChipaca, let's do it (I can wait for you, though)11:01
Chipacafacubatista: let's do it now, and wrap 10' early11:02
Chipacathen i can monch before the osm meet11:02
* bthomas wants to learn spanish and travel the picturesque roads of the "Motorcycle diaries"11:06
=== oscar_44 is now known as oscar_0
oscar_0I have a question. In a juju model, if a unit is added or removed, is there an event that can catch that in the operator framework?13:01
oscar_0because the scenario is that I need to make the charm to regenerate the config file if one unit is added or removed13:03
Chipacaoscar_0: is the unit that is added or removed related in some way to the charm that needs to regenerate its config?13:03
oscar_0yes it has a relation13:03
Chipacaoscar_0: then you'll get a bunch of events 🙂13:07
Chipacaoscar_0: you'll get foo-relation-joined, and foo-relation-changed, when it appears13:08
Chipacaoscar_0: and foo-relation-departed and -broken when it disappears13:09
oscar_0Chipaca: ah, thanks. appreciate your response13:09
Chipacaoscar_0: observe them with e.g. self.framework.observe(self.on[foo].relation_joined, self._on_foo_relation_joined)13:09
oscar_0Chipaca: great, I think that one helps me to get on track with this13:10
Chipacaoscar_0: FWIW you can also write that as self.on.foo_relation_joined (instead of ["foo"].relation_joined), whichever you find more convenient13:11
oscar_0Chipaca: is "relation_broken" called when a relation is removed?13:26
Chipacaoscar_0: https://discourse.juju.is/t/charm-hooks/1040#heading--name-relation-broken13:27
Chipacaoscar_0: 🙂13:27
oscar_0I know, I should RTFM ;)13:28
Chipacaoscar_0: i only point you at it as it is more nuanced13:29
Chipacaa simple yes/no might've done you a mis-service13:29
oscar_0Chipaca: yep, thanks for the reference13:30
* facubatista -> errands, brb14:04
* facubatista cancelled the errands, will do later14:08

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!