Commit 5fe5e2d3 by Toshio Kuratomi

Docstring for v2 inventory.subset

parent 8b8a4dd5
...@@ -58,6 +58,12 @@ class Inventory: ...@@ -58,6 +58,12 @@ class Inventory:
def also_restrict_to(self, restriction): def also_restrict_to(self, restriction):
pass pass
def subset(self, subset_pattern): def subset(self, subset_pattern):
"""
Limits inventory results to a subset of inventory that matches a given
pattern, such as to select a given geographic of numeric slice amongst
a previous 'hosts' selection that only select roles, or vice versa...
Corresponds to --limit parameter to ansible-playbook
"""
pass pass
def lift_restriction(self): def lift_restriction(self):
# HACK -- # HACK --
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment