<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 5, 2015 at 11:03 AM, Doug Hellmann <span dir="ltr"><<a href="mailto:doug@doughellmann.com" target="_blank">doug@doughellmann.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Devstack should also look at using the shell output formatter,<br>
especially for show commands. Combining that formatter with eval means<br>
no parsing in a lot of cases.<br></blockquote><div><br></div><div>It may in places, but it turns out the 'value' formatter is most useful, especially in the get_or_create_* functions where you really only need a single value, avoids an eval or extra subshell.</div><div><br></div><div><div> group_id=$(</div><div> # Creates new group with --or-show</div><div> openstack --os-token=$OS_TOKEN --os-url=$os_url \</div><div> --os-identity-api-version=3 group create $1 \</div><div> --domain $2 --description "$desc" --or-show \</div><div> -f value -c id</div><div> )</div><div> echo $group_id</div></div><div><br></div><div>dt</div><div> </div></div>-- <br><div class="gmail_signature"><br>Dean Troyer<br><a href="mailto:dtroyer@gmail.com" target="_blank">dtroyer@gmail.com</a><br></div>
</div></div>