Code Review for September 4 from Australia

2013-09-04 Thread John Arbash Meinel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 (forwarded from Andrew who summarized what the other group discussed) Here's what we found today. I've left off the list so we don't prejudice anyone who hasn't yet reviewed. - - State is not a very meaningful name. One possible alternative that

Re: Control different relation sequence

2013-09-04 Thread Gustavo Niemeyer
Exactly, that's what I would probably do as well. Once you are within a relation you want to wait for further actions, dump the $JUJU_RELATION_ID into a file and wait until you want to wake it up again. Hooks are guaranteed to be run in series, so you don't have to worry about concurrency issues

Re: Control different relation sequence

2013-09-04 Thread Kapil Thangavelu
The missing command here is relation-ids to list the relation ids of a given relation name. JUJU_RELATION_ID gives the current relation be executed for, to trigger/inspect state on other relations, the relation-ids command can be used to find their id, which can be passed to relation-get/set with