> On Apr 25, 2015, at 1:37 AM, Paul Stivers <
psti...@gmail.com> 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().
Kevin R. Bullock