Comment 2 for bug 1721580

Revision history for this message
Tytus Kurek (tkurek) wrote : Re: 'shared-db' incomplete, 'amqp' incomplete, 'identity-service' incomplete

It looks like the actual problem is that the "get_remote()" function does not return the value of the "access-network" parameter. I've modified the following part of the code ("hooks/relations/mysql-shared/requires.py"):

    @hook('{requires:mysql-shared}-relation-changed')
    def changed(self):
        conv = self.conversation()
        print (self.conversation())
        print (conv.get_remote('access-network'))
        print (conv.get_remote('access_network'))

and this is the output I'm getting:

2017-10-06 11:00:41 INFO shared-db-relation-changed <charms.reactive.relations.Conversation object at 0x7f544009d080>
2017-10-06 11:00:41 INFO shared-db-relation-changed None
2017-10-06 11:00:41 INFO shared-db-relation-changed None