Skip to content

Commit

Permalink
Merge pull request #313 from freyes/juju-not-classic-2
Browse files Browse the repository at this point in the history
Rewrite jinja2 snippet to determine if juju snap should be classic
  • Loading branch information
ajkavanagh authored Feb 9, 2024
2 parents 52f6984 + 6db76ea commit eb05cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playbooks/juju/pre.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# instead of asking users to understand this, we encapsulate this
# information into this inline-if where if the juju_snap_channel has the
# '2.9/' prefix the classic field is set to True, otherwise False.
classic: "{{ True if juju_snap_channel and juju_snap_channel.startswith('2.9/') else False }}"
classic: "{{ juju_snap_channel is defined and juju_snap_channel.startswith('2.9/') }}"
channel: "{{ juju_snap_channel }}"
register: result
until: result is not failed
Expand Down

0 comments on commit eb05cf5

Please sign in to comment.