Skip to content

explicit type conversion for Ansible 2.20 compatibility#133

Merged
djdanielsson merged 2 commits into
redhat-cop:develfrom
Zathrus:devel
Jun 22, 2026
Merged

explicit type conversion for Ansible 2.20 compatibility#133
djdanielsson merged 2 commits into
redhat-cop:develfrom
Zathrus:devel

Conversation

@Zathrus

@Zathrus Zathrus commented Jun 18, 2026

Copy link
Copy Markdown

What does this PR do?

Eliminates type conversion errors in user_roles and team_roles, similar to following:
Error while resolving value for 'user_roles_lookvar': Error rendering template: can only concatenate str (not "_AnsibleTaggedInt") to str"

How should this be tested?

Run export.sh using Ansible 2.20 (discovered with 2.20.5)

Is there a relevant Issue open for this?

No

@Zathrus Zathrus requested a review from a team as a code owner June 22, 2026 14:33
@lennysh

lennysh commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Tested with 2.20.2, and encountered the same exact issue. Manually made these changes on my end, and can confirm this does indeed fix the issue. Also, does not appear to break older Ansible core versions, tested 2.16 and 2.18.

All in all, this PR LGTM!

@lennysh lennysh self-requested a review June 22, 2026 14:35

@lennysh lennysh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@djdanielsson djdanielsson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@djdanielsson djdanielsson merged commit a20dbb7 into redhat-cop:devel Jun 22, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants