Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible "is match" does not need a ^ #1262

Closed
toralf opened this issue Sep 14, 2023 · 1 comment · Fixed by #1321
Closed

Ansible "is match" does not need a ^ #1262

toralf opened this issue Sep 14, 2023 · 1 comment · Fixed by #1321
Labels
enhancement New feature or request good first issue Good for newcomers has_pr PR fixes have been made

Comments

@toralf
Copy link

toralf commented Sep 14, 2023

A match always starts from the beginning of a string. So the caret is superfluous here:

      - output.state.private_dns_zone_configs[0].record_sets[0].ip_addresses[0] is match('^10.1.*')
      - output.groups[0].private_dns_zone_configs[0].record_sets[0].ip_addresses[0] is match('^10.1.*')
      - output.groups[0].private_dns_zone_configs[0].record_sets[0].ip_addresses[0] is match('^10.1.*')
      - output.state.private_dns_zone_configs[0].record_sets[0].ip_addresses[0] is match('^10.1.*')
@Fred-sun Fred-sun added enhancement New feature or request good first issue Good for newcomers has_pr PR fixes have been made labels Nov 7, 2023
@Fred-sun
Copy link
Collaborator

Fred-sun commented Nov 7, 2023

Fixes by #1321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers has_pr PR fixes have been made
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants