Initial Commit for Interface of IBM-MQ
Bug #1636120 reported by
Anita Nayak
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charms Collection |
New
|
Undecided
|
Unassigned |
Bug Description
Hi All,
Here is a new Interface for IBM MQ for review.
Interface used for IBM MQ
The consumer charms can use ibm-mq interface to connect to ibm-mq charm.
The code can be found in the below link:
https:/
Thanks
Related branches
To post a comment you must log in.
Hi Anita, this looks like it will work as written, but I have a few comments that might help ease future maintenance:
REQUIRES.PY:
I noticed a few '.available' state references, for example:
http:// bazaar. launchpad. net/~ibmcharmer s/interface- ibm-mq/ trunk/view/ head:/requires. py?start_ revid=1
The only states used by charms that leverage this interface are '.connected' and '.ready'. Therefore, references to '.available' should be removed, along with the debug "print('foo')" statements.
PROVIDES.PY:
The auto-accessors are typically used by the "requires" side as a convenient way to "get" remote data. Since the provider isn't actually retrieving the 4 items listed here, they can be removed:
http:// bazaar. launchpad. net/~ibmcharmer s/interface- ibm-mq/ trunk/view/ head:/provides. py?start_ revid=1# L10
Thanks for the work on this interface thus far - let me know if you have any questions/concerns about this review.