Skip to content

Commit

Permalink
M #-: Allow == to max_ansibe (due to need of 2.13) (#2847)
Browse files Browse the repository at this point in the history
  • Loading branch information
xorel committed Nov 29, 2023
1 parent 669aa32 commit 3fa1eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oneprovision/lib/provision/ansible.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def check_ansible_version(provision)

ansible_min, ansible_max = provision.ansible_ver

if (version < ansible_min) || (version >= ansible_max)
if (version < ansible_min) || (version > ansible_max)
Utils.fail("Unsupported Ansible ver. #{version}, " \
"must be >= #{ansible_min} and < #{ansible_max}")
"must be >= #{ansible_min} and <= #{ansible_max}")
end

return if provision.nil? || !provision.hci?
Expand Down

0 comments on commit 3fa1eb5

Please sign in to comment.