Re: how to bind to the default space in a bundle

2017-11-10 Thread Alberto Colla
hi James, try this: mysql: ... bindings: "": default-space db: db-space db-admin: admin-space ... I hope it helps, cheers, Alberto Il 10/11/2017 07:01, James Beedy ha scritto: Is it possible to accomplish the following using a bundle? `ju

Re: set_state not setting the state immediately

2017-11-10 Thread Konstantinos Tsakalozos
Hi again, This behaviour is not consistent between the python and bash reactive implementation. Seems the setting of states occurs at the end of each method invocation in bash, and at the end of hook invocation in the python implementation. Even if it is not correct, the behaviour of the bash re

Re: set_state not setting the state immediately

2017-11-10 Thread Merlijn Sebrechts
Afaik, `relation-set` and `open-port` gets "reset" by Juju if a hook fails. This means that a bash charm might think it has opened a port and published info on the relation based on the flags, but that hasn't actually happened. Important to note here is that this only happens on a hook failure fro

Re: set_state not setting the state immediately

2017-11-10 Thread Stuart Bishop
On 10 November 2017 at 21:54, Konstantinos Tsakalozos wrote: > Even if it is not correct, the behaviour of the bash reactive is what > the naive ( :) ) developer expects. Can you give me a concrete example > of what can go wrong with the approach the bash reactive > implementation is taking? Stua

Re: set_state not setting the state immediately

2017-11-10 Thread Konstantinos Tsakalozos
Thank you both. It is clear now. On Fri, Nov 10, 2017 at 6:14 PM, Stuart Bishop wrote: > On 10 November 2017 at 21:54, Konstantinos Tsakalozos > wrote: > >> Even if it is not correct, the behaviour of the bash reactive is what >> the naive ( :) ) developer expects. Can you give me a concrete exa