Skip to content

Commit

Permalink
Merge branch 'test_as_filters_deprecation' into 'master'
Browse files Browse the repository at this point in the history
Test as filters Deprecation Warning

See merge request sassoftware/viya-ark!19
  • Loading branch information
thpang committed Mar 27, 2019
2 parents cc33862 + 457b3be commit 80b3bcb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@
assert:
that:
# either 6 or 7
- ansible_distribution_major_version | version_compare(os_major_version_1, '==')
- ansible_distribution_major_version is version_compare(os_major_version_1, '==')
or
ansible_distribution_major_version | version_compare(os_major_version_2, '==')
ansible_distribution_major_version is version_compare(os_major_version_2, '==')
# at least 6.7 if 6 or at least 7.1 if 7
- (ansible_distribution_major_version | version_compare(os_major_version_1, '==')
- (ansible_distribution_major_version is version_compare(os_major_version_1, '==')
and
ansible_distribution_version | version_compare(os_major_minor_version_1, '>='))
ansible_distribution_version is version_compare(os_major_minor_version_1, '>='))
or
(ansible_distribution_major_version | version_compare(os_major_version_2, '==')
(ansible_distribution_major_version is version_compare(os_major_version_2, '==')
and
ansible_distribution_version | version_compare(os_major_minor_version_2, '>='))
ansible_distribution_version is version_compare(os_major_minor_version_2, '>='))
msg: |
The OS of this server is not supported.
Viya requires {{redhat_os_name}} {{os_major_version_1}} or {{os_major_version_2}}, (at least {{os_major_minor_version_1}} or {{os_major_minor_version_2}} )
Expand All @@ -46,7 +46,7 @@
assert:
that:
# version is at least 12.2
- ansible_distribution_version | version_compare(suse_os_major_minor_version, '>=')
- ansible_distribution_version is version_compare(suse_os_major_minor_version, '>=')
msg: |
The OS of this server is not supported.
Viya requires {{suse_os_name}} at least version {{suse_os_major_minor_version}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
## third-party checks block
- name: Check for minimum version of Ansible
fail: msg="It looks like your are using Ansible version {{ansible_version.full}} but SAS deployment requires version {{required_ansible_min_version}}."
when: ansible_version.full | version_compare(required_ansible_min_version, '<')
when: ansible_version.full is version_compare(required_ansible_min_version, '<')
tags:
- ansible_version_check

- name: Check for minimum version of Python
fail: msg="It looks like your are using Python {{ansible_python_version}} but SAS deployment requires Python {{required_python_min_version}}."
when: ansible_python_version | version_compare(required_python_min_version, '<')
when: ansible_python_version is version_compare(required_python_min_version, '<')
tags:
- python_version_check

Expand Down

0 comments on commit 80b3bcb

Please sign in to comment.