Chipaca | 👋❗ | 08:31 |
---|---|---|
bthomas | morning | 09:09 |
bthomas | Chipaca is there a self.peer_set(<peer-data>) function in OPS ? | 09:26 |
Chipaca | bthomas: no | 09:26 |
bthomas | Ah 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 |
Chipaca | facubatista: [citation needed] | 10:58 |
Chipaca | 🙂 | 10:58 |
facubatista | hola Chipaca! | 10:58 |
Chipaca | facubatista: q'acelga caezn | 10:58 |
facubatista | Chipaca, acá me ando | 10:58 |
Chipaca | facubatista: guarda con los cables | 10:58 |
facubatista | *sparks of joy* | 10:59 |
* Chipaca LOLs | 10:59 | |
Chipaca | facubatista: are we doing the bug revue today? otherwise i'll get me some lunch | 10:59 |
facubatista | Chipaca, let's do it (I can wait for you, though) | 11:01 |
Chipaca | facubatista: let's do it now, and wrap 10' early | 11:02 |
Chipaca | then i can monch before the osm meet | 11:02 |
facubatista | ack | 11: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_0 | I 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_0 | because the scenario is that I need to make the charm to regenerate the config file if one unit is added or removed | 13:03 |
Chipaca | oscar_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_0 | yes it has a relation | 13:03 |
Chipaca | oscar_0: then you'll get a bunch of events 🙂 | 13:07 |
Chipaca | oscar_0: you'll get foo-relation-joined, and foo-relation-changed, when it appears | 13:08 |
Chipaca | oscar_0: and foo-relation-departed and -broken when it disappears | 13:09 |
oscar_0 | Chipaca: ah, thanks. appreciate your response | 13:09 |
Chipaca | oscar_0: observe them with e.g. self.framework.observe(self.on[foo].relation_joined, self._on_foo_relation_joined) | 13:09 |
oscar_0 | Chipaca: great, I think that one helps me to get on track with this | 13:10 |
Chipaca | oscar_0: FWIW you can also write that as self.on.foo_relation_joined (instead of ["foo"].relation_joined), whichever you find more convenient | 13:11 |
oscar_0 | Chipaca: is "relation_broken" called when a relation is removed? | 13:26 |
Chipaca | oscar_0: https://discourse.juju.is/t/charm-hooks/1040#heading--name-relation-broken | 13:27 |
Chipaca | oscar_0: 🙂 | 13:27 |
oscar_0 | I know, I should RTFM ;) | 13:28 |
Chipaca | oscar_0: i only point you at it as it is more nuanced | 13:29 |
Chipaca | a simple yes/no might've done you a mis-service | 13:29 |
oscar_0 | Chipaca: yep, thanks for the reference | 13:30 |
* facubatista -> errands, brb | 14:04 | |
* facubatista cancelled the errands, will do later | 14:08 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!