On Monday, 13 February 2012 08:55:02 UTC-8, pille+salt+...@struction.de wrote:
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.
in the meantime i came up with:
{% for netdev in salt['cmd.run']('ls /sys/class/net/').replace('\n', '') %}
This would seem to iterate over every character in the string.

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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupsalt-users @
postedJul 14, '15 at 7:46p
activeJul 14, '15 at 7:46p

1 user in discussion

Jason Dusek: 1 post



site design / logo © 2022 Grokbase