Skip to content

Commit

Permalink
Support for 2.15...updating linter. (#4144)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
  • Loading branch information
3 people authored May 29, 2024
1 parent 4588273 commit 960af4a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
requires_ansible: "2.14.0,<2.16"
requires_ansible: "2.15.0,<2.16"
2 changes: 1 addition & 1 deletion examples/meta_runtime_version_checks/pass/meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
requires_ansible: ">=2.14.0,<2.15"
requires_ansible: ">=2.15.0,<2.17"
4 changes: 2 additions & 2 deletions src/ansiblelint/rules/meta_runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ requires_ansible: ">=2.9"
```yaml
# runtime.yml
---
requires_ansible: "2.14"
requires_ansible: "2.15"
```
## Correct code
```yaml
# runtime.yml
---
requires_ansible: ">=2.14.0"
requires_ansible: ">=2.15.0"
```
2 changes: 1 addition & 1 deletion src/ansiblelint/rules/meta_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CheckRequiresAnsibleVersion(AnsibleLintRule):

# Refer to https://access.redhat.com/support/policy/updates/ansible-automation-platform
# Also add devel to this list
supported_ansible = ["2.14.", "2.15.", "2.16."]
supported_ansible = ["2.15.", "2.16.", "2.17."]
supported_ansible_examples = [f">={x}0" for x in supported_ansible]
_ids = {
"meta-runtime[unsupported-version]": f"'requires_ansible' key must refer to a currently supported version such as: {', '.join(supported_ansible_examples)}",
Expand Down

0 comments on commit 960af4a

Please sign in to comment.