Skip to content

Commit

Permalink
Merge branch 'w/2.5/bugfix/GH-2551-fix-downgrade-pre-check' into tmp/…
Browse files Browse the repository at this point in the history
…octopus/w/2.6/bugfix/GH-2551-fix-downgrade-pre-check
  • Loading branch information
bert-e committed May 15, 2020
2 parents b4d3a23 + 898beec commit 2d4a7d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/metalk8s/orchestrate/downgrade/precheck.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{%- set nodes_versions = pillar.metalk8s.nodes.values() | map(attribute='version') | list %}
{%- do nodes_versions.sort(cmp=salt.pkg.version_cmp, reverse=True) %}
{%- set expected = nodes_versions | first %}
{%- if saltenv != 'metalk8s-' ~ expected %}
{%- if salt.pkg.version_cmp(saltenv, 'metalk8s-' ~ expected) >= 0 %}

Invalid saltenv "{{ saltenv }}" consider using "metalk8s-{{ expected }}":
test.fail_without_changes
Expand Down

0 comments on commit 2d4a7d0

Please sign in to comment.