> On Apr 25, 2015, at 1:37 AM, Paul Stivers <[email protected]> wrote:
> 
> This may be as much a Python question as an Ansible question. This is a 
> function in a deploy script. 
> I'm trying to understand what "['tag_Environment_%s' % args.environment]" 
> means.
> Problem is I don't know enough about the syntax to even google the right 
> topic. Any help? 
> Either an explanation, or pointer to a url, or a topic to search, would be 
> very much appreciated.
> 
> Paul
> 
> from ansible.inventory import Inventory
> 
> def set_inventory(args):
>     subsets = ['tag_Environment_%s' % args.environment]

That's how Python does string interpolation, in a similar style to C's 
sprintf(). 
https://docs.python.org/2/library/stdtypes.html#string-formatting-operations

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/F14E53C1-ED74-4734-B239-5A0F3F0053B6%40softwareforgood.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to