On Monday, 13 February 2012 08:55:02 UTC-8, pille+salt+...@struction.de wrote:
in the meantime i came up with:
{% for netdev in salt['cmd.run']('ls /sys/class/net/').replace('\n', '') %}
On 02/13/2012 05:39 PM, Thomas S Hatch wrote:
{% for netdev in salt['cmd.run']('ls /sys/class/net/').split() %}
thanks, that totally does what i wanted.{% for netdev in salt['cmd.run']('ls /sys/class/net/').split() %}
in the meantime i came up with:
{% for netdev in salt['cmd.run']('ls /sys/class/net/').replace('\n', '') %}
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.