From 91d02e1c1fb16ac0fbb079334f9d3c239e57034a Mon Sep 17 00:00:00 2001 From: Kenyon Ralph Date: Sun, 26 Apr 2020 23:34:51 -0700 Subject: [PATCH] constructed inventory plugin: correct example (#69165) Fixed 'intersect' filter name in constructed inventory plugin example. --- lib/ansible/plugins/inventory/constructed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/inventory/constructed.py b/lib/ansible/plugins/inventory/constructed.py index 7ab6dea588e..64b6c1446fd 100644 --- a/lib/ansible/plugins/inventory/constructed.py +++ b/lib/ansible/plugins/inventory/constructed.py @@ -45,7 +45,7 @@ EXAMPLES = r''' private_only: not (public_dns_name is defined or ip_address is defined) # complex group membership - multi_group: (group_names|intersection(['alpha', 'beta', 'omega']))|length >= 2 + multi_group: (group_names | intersect(['alpha', 'beta', 'omega'])) | length >= 2 keyed_groups: # this creates a group per distro (distro_CentOS, distro_Debian) and assigns the hosts that have matching values to it,