Need a way to extract lists efficiently using --key

Bug #1291180 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-apply-config
Triaged
Wishlist
Unassigned

Bug Description

There will be situations where we want to iterate over a list from Metadata in a script. So something like

for host in $(os-apply-config --key hosts --list --type netaddr) ; do
  do_logic_with $host
done

Note the addition of the fictional '--list'. I'm thinking it would print each item in the list with a newline after for easy consumption in shell.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.