mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-10 02:41:30 +00:00
[PR #9845/7d5357d7 backport][stable-10] Fix roles/policies normalization in consul_token. (#9863)
Fix roles/policies normalization in consul_token. (#9845)
* Fix roles/policies normalization in consul_token.
* Update changelogs/fragments/9845-consul_token_idempotency.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 7d5357d74c)
Co-authored-by: Florian Apolloner <florian@apolloner.eu>
This commit is contained in:
@@ -220,7 +220,7 @@ def normalize_link_obj(api_obj, module_obj, key):
|
||||
|
||||
for obj in module_objs:
|
||||
identifier = obj.get("ID")
|
||||
name = obj.get("Name)")
|
||||
name = obj.get("Name")
|
||||
if identifier and not name and identifier in id_to_name:
|
||||
obj["Name"] = id_to_name[identifier]
|
||||
if not identifier and name and name in name_to_id:
|
||||
|
||||
Reference in New Issue
Block a user