From edba563e9a058a2df56371174478d5bfb3945a26 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Wed, 16 Aug 2017 04:13:16 +0200 Subject: [PATCH] ACI fixes (#28257) --- lib/ansible/modules/network/aci/aci_filter.py | 2 +- lib/ansible/modules/network/aci/aci_subject_filter_binding.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/network/aci/aci_filter.py b/lib/ansible/modules/network/aci/aci_filter.py index ca7fe9ddd54..36bce1776da 100644 --- a/lib/ansible/modules/network/aci/aci_filter.py +++ b/lib/ansible/modules/network/aci/aci_filter.py @@ -122,7 +122,7 @@ def main(): # TODO: Investigate for a URI to query objects for a specific tenant if filter_name is not None: # Work with a specific object - path = 'api/mo/uni/tn-%(tenant)s/flt-%(filter_name)s.json' % module.params + path = 'api/mo/uni/tn-%s/flt-%s.json' % (tenant, filter_name) elif state == 'query': # Query all objects path = 'api/node/class/vzFilter.json' diff --git a/lib/ansible/modules/network/aci/aci_subject_filter_binding.py b/lib/ansible/modules/network/aci/aci_subject_filter_binding.py index 4d14e9690f2..b46963b0694 100644 --- a/lib/ansible/modules/network/aci/aci_subject_filter_binding.py +++ b/lib/ansible/modules/network/aci/aci_subject_filter_binding.py @@ -24,7 +24,7 @@ requirements: - ACI Fabric 1.0(3f)+ notes: - The C(tenant), C(contract), C(subject), and C(filter_name) must exist before using this module in your playbook. - The M(aci_tenant), M(aci_contract), M(aci_contract_subject), and M(aci_filter) modules can be used for these. +- The M(aci_tenant), M(aci_contract), M(aci_contract_subject), and M(aci_filter) modules can be used for these. options: contract: description: @@ -59,7 +59,7 @@ extends_documentation_fragment: aci # FIXME: Add more, better examples EXAMPLES = r''' -- aci_subject_bind_filter: +- aci_subject_filter_binding: hostname: '{{ inventory_hostname }}' username: '{{ username }}' password: '{{ password }}'