summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins
diff options
context:
space:
mode:
authorSloane Hertel <19572925+s-hertel@users.noreply.github.com>2021-03-18 09:45:13 -0400
committerGitHub <noreply@github.com>2021-03-18 09:45:13 -0400
commit95dc8f23614f34d599c2268e8fc7689c482fb7c9 (patch)
treea6418f8d0fc1d6fea6348559efe268b83a11ccfc /lib/ansible/plugins
parent30c465c1a9e2234871d1c88cfb3af5545f61e0b6 (diff)
downloadansible-95dc8f23614f34d599c2268e8fc7689c482fb7c9.tar.gz
Add some dev documentation for constructed features (#73497)
Diffstat (limited to 'lib/ansible/plugins')
-rw-r--r--lib/ansible/plugins/inventory/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ansible/plugins/inventory/__init__.py b/lib/ansible/plugins/inventory/__init__.py
index c718e930f3..4ce924f577 100644
--- a/lib/ansible/plugins/inventory/__init__.py
+++ b/lib/ansible/plugins/inventory/__init__.py
@@ -150,6 +150,11 @@ class BaseInventoryPlugin(AnsiblePlugin):
""" Parses an Inventory Source"""
TYPE = 'generator'
+
+ # 3rd party plugins redefine this to
+ # use custom group name sanitization
+ # since constructed features enforce
+ # it by default.
_sanitize_group_name = staticmethod(to_safe_group_name)
def __init__(self):