Skip to content

Commit

Permalink
chore(#449): apply code review
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Aug 14, 2024
1 parent 2e2f313 commit 4b70222
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion salt/base/swap.sls
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% set size = swapfile.get("size", "1024") %}
{% set path = swapfile.get("path") %}

{% if path is not None %}
{{ path }}:
cmd.run:
- name: |
Expand All @@ -13,4 +14,5 @@
- unless: bash -c "[[ $(($(stat -c %s {{ path }}) / 1024**2)) = {{ size }} ]]"

mount.swap:
- persist: true
- persist: true
{% endif %}

0 comments on commit 4b70222

Please sign in to comment.