[09:54] <stub> bthomas: The pgsql interface is no longer in my playpen and 1.0.0 can be found at https://github.com/canonical/ops-lib-pgsql .
[09:56] <bthomas> thanks stub : the problem I was facing was I had not setup my global git config to work with launchpad. Chipaca noticed that and helped me fix the issue. Will have a look at ops-lib-pgsql.
[09:56] <stub> The updated version means you don't need that ;)
[09:57] <stub> Functionally it is the same
[09:57] <stub> (so far)
[10:39] <mup> Issue operator#395 opened: juju-info not supported <Created by stub42> <https://github.com/canonical/operator/issues/395>
[11:12] <facubatista> ¡Muy buenos días a todos!
[12:25] <facubatista> jam, I have a juju question, to see if something is possible... let's say I have two units, one with Apache and other with my charm, the human operator relates both, so I get a 'relation-changed' event
[12:25] <facubatista> when handling that event, I do `event.relation.data[self.unit]['ports'] = '80'`, so I'm configuring Apache to work on the port 80, for example
[12:26] <facubatista> but let's say that in the future my charm's config changes, and I want to tell Apache to listen in a different port... can I do that? how? because at that moment I don't have "the event from the Apache unit" to write into...
[13:33] <jam> facubatista: but you have 'config-changed' as the event
[13:33] <jam> and you can do
[13:33] <jam> self.model.get_relation('apache').data[self.unit]['ports'] = '80'
[13:33] <jam> or better:
[13:33] <jam> for relation in self.model.relations['apache']:
[13:34] <jam>   relation.data[self.unit]['ports'] = '80'
[13:34] <jam> And that will trigger relation-changed on Apache
[13:34] <jam> the loop and/or relation = self.model.get_relation(); if relation is not None:
[13:34] <jam> would let you do the check to see if you actually are related to apache when you get config-changed
[13:52] <facubatista> jam, ah, getting the relations through `self.model.relation` is what we were not finding how to do with davigar15_ , thanks!!!
[13:52] <jam> np