Skip to content

Commit 02fbbde

Browse files
Merge pull request #462 from petetong1989/fix-add-member-binding-error
Ensure to_be_added_bindprimary_keys targets only the correct binding …
2 parents c332f78 + 53455cb commit 02fbbde

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.6.2] - 2024-10-18
11+
12+
### Fixed
13+
14+
- Ensure to_be_added_bindprimary_keys targets only the correct binding members ([#462])
15+
1016
## [2.6.1] - 2024-04-29
1117

1218
### Fixed
@@ -169,3 +175,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
169175
[#367]: https://github.com/netscaler/ansible-collection-netscaleradc/issues/367
170176
[#377]: https://github.com/netscaler/ansible-collection-netscaleradc/issues/377
171177
[#400]: https://github.com/netscaler/ansible-collection-netscaleradc/issues/400
178+
[#462]: https://github.com/netscaler/ansible-collection-netscaleradc/issues/462

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ build:
5959
ansible-galaxy collection build --force
6060

6161
galaxy_importer: build
62-
python3 -m galaxy_importer.main netscaler-adc-2.2.0.tar.gz
62+
python3 -m galaxy_importer.main netscaler-adc-2.6.2.tar.gz
6363

6464
# build_docs:
6565
# rm -rf _built_docs

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace: netscaler
77
# The name of the collection. Has the same character restrictions as 'namespace'
88
name: adc
99
# The version of the collection. Must be compatible with semantic versioning
10-
version: 2.6.1
10+
version: 2.6.2
1111
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1212
readme: README.md
1313
# A list of the collection's content authors. Can be just the name or in the format 'Full Name <email> (url)

plugins/module_utils/module_executor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,10 @@ def sync_single_binding(self, binding_name):
672672
if to_be_added_bindprimary_keys:
673673
self.add_bindings(
674674
binding_name=binding_name,
675-
desired_bindings=desired_binding_members,
675+
desired_bindings=[
676+
x for x in desired_binding_members
677+
if x[get_bindprimary_key(binding_name, x)] in to_be_added_bindprimary_keys
678+
],
676679
)
677680

678681
# If there is any default bindings, after adding the custom bindings, the default bindings will be deleted automatically

0 commit comments

Comments
 (0)