From 00d78d7ef3870100bb58cfed97b4984903a40973 Mon Sep 17 00:00:00 2001 From: "Metzger, Simon" Date: Thu, 27 Sep 2018 22:05:32 +0200 Subject: [PATCH] added period in description. Changed integration test to work correctly. --- .../network/aci/aci_access_port_block_to_access_port.py | 2 +- .../aci_access_port_block_to_access_port/tasks/main.yml | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/network/aci/aci_access_port_block_to_access_port.py b/lib/ansible/modules/network/aci/aci_access_port_block_to_access_port.py index 052ef4827ee..862200b881b 100644 --- a/lib/ansible/modules/network/aci/aci_access_port_block_to_access_port.py +++ b/lib/ansible/modules/network/aci/aci_access_port_block_to_access_port.py @@ -41,7 +41,7 @@ options: aliases: [ leaf_port_blk_name ] leaf_port_blk_description: description: - - The description to assign to the C(leaf_port_blk) + - The description to assign to the C(leaf_port_blk). from_port: description: - The beginning (from-range) of the port range block for the leaf access port block. diff --git a/test/integration/targets/aci_access_port_block_to_access_port/tasks/main.yml b/test/integration/targets/aci_access_port_block_to_access_port/tasks/main.yml index 6045b010107..543e8e0ba38 100644 --- a/test/integration/targets/aci_access_port_block_to_access_port/tasks/main.yml +++ b/test/integration/targets/aci_access_port_block_to_access_port/tasks/main.yml @@ -51,8 +51,6 @@ - name: Bind an Access Port Block to an Interface Access Port Selector - update works aci_access_port_block_to_access_port: <<: *aci_access_port_block_to_access_port_present - leaf_port_blk: anstest_leafportblkname - fromPort: 13 toPort: 15 register: accessportblock_to_accessport_update @@ -63,11 +61,11 @@ - accessportblock_to_accessport_check_mode_present is changed - accessportblock_to_accessport_present is changed - accessportblock_to_accessport_present.previous == [] - - 'accessportblock_to_accessport_present.sent == {"infraPortBlk": {"attributes": {"descr": "anstest_leafportblkdesc", "name": "anstest_leafportblkname", "fromPort": "16", "toPort": "16"}}}' + - 'accessportblock_to_accessport_present.sent == {"infraPortBlk": {"attributes": {"descr": "anstest_leafportblkdesc", "name": "anstest_leafportblkname", "fromPort": "13", "toPort": "16"}}}' - accessportblock_to_accessport_idempotent is not changed - accessportblock_to_accessport_idempotent.sent == {} - accessportblock_to_accessport_update is changed - - 'accessportblock_to_accessport_update.sent == {"infraPortBlk": {"attributes": {"name": "anstest_leafportblkname", "fromPort": "15", "toPort": "15"}}}' + - 'accessportblock_to_accessport_update.sent == {"infraPortBlk": {"attributes": {"toPort": "15"}}}' - name: Query Specific port block and access_port_selector binding @@ -127,7 +125,7 @@ state: absent - name: Remove Interface Access Port Selector - Cleanup - aci_interface_policy_leaf_profile: + aci_access_port_to_interface_policy_leaf_profile: <<: *aci_access_port_to_interface_policy_leaf_profile_present state: absent