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