<div dir="ltr">Yeah that wont work, because I don't know what the parameters would be called, they are basically runtime variables for ETL designers.<div><br></div><div>On the command line I need to build a string that looks something like:</div><div><br></div><div>./kitchen -file=charmerroundup.kjb -param:marco=thinksallquestionareawesome -param:kevin=likestodrinklachoufe -param:notetoself=nevereatbluecheeseandicecream</div><div><br></div><div>so, I can have a user pass in all those params as one long string, but it would nice to be able to model is as a KV object and just iterate over them.</div><div><br></div><div>Tom</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><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: +44(0)5603641316  </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>
<br><div class="gmail_quote">On 4 February 2016 at 21:59, Marco Ceppi <span dir="ltr"><<a href="mailto:marco.ceppi@canonical.com" target="_blank">marco.ceppi@canonical.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">I'm inclined to say "yes" but I'd need a bit more of an example to confirm. Since actions are defined as jsonschema you can define nested parameters and such so I believe your usecase will work. However, the parameters you pass must be in the schema. Juju uses it to validate that the data passed is correct.<div><br></div><div>EG:</div><div><br></div><div><a href="http://paste.ubuntu.com/14882820/" target="_blank">http://paste.ubuntu.com/14882820/</a><br></div><div><br></div><div>I could do </div><div><br></div><div>juju action do network-qos device=eth1 delay.time=2000</div><div><br></div><div>but not</div><div><br></div><div>juju action do network-qos delay.non-existant-option=True</div><div><br></div><div>Marco</div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Thu, Feb 4, 2016 at 3:34 PM Tom Barber <<a href="mailto:tom@analytical-labs.com" target="_blank">tom@analytical-labs.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Alright then chaps.<div><br></div><div>I want to create an action with a parameter that may or may not exist plus you might define it more than once.</div><div><br></div><div>I see in the actions doc some stuff about aditional properties which may or maynot be relevant. Can i pass in an array of objects of the same type so my bash script can iterate over them and build my required string?</div><div><br></div><div>Thanks</div><div><br></div><div>Tom<br clear="all"><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></div></div><span class="HOEnZb"><font color="#888888">
--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com" target="_blank">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>
</font></span></blockquote></div></div>
</blockquote></div><br></div>