<div dir="ltr">As long as the state is only set by the interface layer, the handler will always get the relation instance passed in for that state, no matter what Juju hook it's currently running. As before, I don't see anything obvious that would cause that error, so it will require some debugging.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 3, 2016 at 5:28 PM, Tom Barber <span dir="ltr"><<a href="mailto:tom@analytical-labs.com" target="_blank">tom@analytical-labs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Evening all here's one that someone with more brains than me can answer:<div><br></div><div><a href="https://github.com/OSBI/layer-pdi/blob/master/reactive/pdi.py" target="_blank">https://github.com/OSBI/layer-pdi/blob/master/reactive/pdi.py</a></div><div><br></div><div>I'm having issues with this with the config-change and upgrade-charm hooks</div><div><br></div><div>Both have a nasty habit of returning:</div><div><br></div><div><div>2016-03-03 22:25:44 INFO config-changed TypeError: check_running() missing 1 required positional argument: 'java'</div><div>2016-03-03 22:25:44 ERROR juju.worker.uniter.operation runhook.go:107 hook "config-changed" failed: exit status 1</div><div><br></div><div>Me and Cory mulled it over without any great resolution last night, but can someone explain why check_runnnig baulks. Is it because the Java layer passes the java object but the config-changed and upgrade-hook don't and so I need to split them out? or is there a nicer solution?</div><div><br></div><div>Thanks</div><div><br></div><div>Tom</div><div><br></div><div><div><div dir="ltr"><div><div dir="ltr">--------------<div><br></div><div><div style="font-size:small"><font color="#999999">Director Meteorite.bi - Saiku Analytics Founder</font></div><div style="font-size:small"><font color="#999999">Tel: <a href="tel:%2B44%280%295603641316" value="+445603641316" target="_blank">+44(0)5603641316</a> </font></div><div style="font-size:small"><font color="#999999"><br></font></div><div style="font-size:small"><font color="#999999">(Thanks to the Saiku community we reached our <a href="http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/" target="_blank">Kickstart</a> goal, but you can always help by <a href="http://www.meteorite.bi/products/saiku/sponsorship" target="_blank">sponsoring the project</a>)</font></div></div></div></div></div></div></div>
</div></div>
<br>--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
<br></blockquote></div><br></div>