mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 14:20:45 +00:00
rename ansible_review_min_version to ansible_later_min_version
This commit is contained in:
parent
618216a555
commit
e05cad6de7
@ -7,6 +7,7 @@ with old releases.
|
||||
- Switch configuration files to YAML
|
||||
- Enable multi location configuration files [#14](https://github.com/xoxys/ansible-later/issues/14)
|
||||
- ID's used in standards have to be unique (or not set)
|
||||
- `ansible_review_min_version` was renamed to `ansible_later_min_version`
|
||||
|
||||
- FEATURE
|
||||
- Add optional JSON logging [#13](https://github.com/xoxys/ansible-later/issues/13)
|
||||
|
@ -41,13 +41,13 @@ def get_standards(filepath):
|
||||
"Please upgrade ansible." %
|
||||
(standards.ansible_min_version, ansible.__version__))
|
||||
|
||||
if getattr(standards, "ansible_review_min_version", None) and \
|
||||
LooseVersion(standards.ansible_review_min_version) > LooseVersion(
|
||||
if getattr(standards, "ansible_later_min_version", None) and \
|
||||
LooseVersion(standards.ansible_later_min_version) > LooseVersion(
|
||||
utils.get_property("__version__")):
|
||||
utils.sysexit_with_message(
|
||||
"Standards require ansible-later version %s (current version %s). "
|
||||
"Please upgrade ansible-later." %
|
||||
(standards.ansible_review_min_version, utils.get_property("__version__")))
|
||||
(standards.ansible_later_min_version, utils.get_property("__version__")))
|
||||
|
||||
normalized_std = (list(toolz.remove(lambda x: x.id == "", standards.standards)))
|
||||
unique_std = len(list(toolz.unique(normalized_std, key=lambda x: x.id)))
|
||||
|
@ -226,7 +226,7 @@ use_yaml_rather_than_key_value = Standard(dict(
|
||||
|
||||
|
||||
ansible_min_version = "2.5"
|
||||
ansible_review_min_version = "0.1.0"
|
||||
ansible_later_min_version = "0.2.0"
|
||||
|
||||
|
||||
standards = [
|
||||
|
@ -197,7 +197,7 @@ use_yaml_rather_than_key_value = Standard(dict(
|
||||
|
||||
|
||||
ansible_min_version = '2.1'
|
||||
ansible_review_min_version = '0.1.0'
|
||||
ansible_later_min_version = '0.1.0'
|
||||
|
||||
|
||||
standards = [
|
||||
|
Loading…
Reference in New Issue
Block a user