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]
if args.subset:
subsets.append(args.subset)
inventory = Inventory(args.inventory)
inventory.subset(":&".join(subsets))
return inventory code here...
--
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/e388e229-11be-4e21-84d7-e76ed991b663%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.