Skip to content

Commit

Permalink
Fix missing grain check 'authorized_keys'
Browse files Browse the repository at this point in the history
  • Loading branch information
cbbayburt committed May 22, 2023
1 parent d3bb569 commit 103dd32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/default/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ file_swap:
- cmd: file_swap
{% endif %}

{% if grains['authorized_keys'] %}
{% if grains.get('authorized_keys') is not none %}
authorized_keys:
file.append:
- name: /root/.ssh/authorized_keys
Expand Down

0 comments on commit 103dd32

Please sign in to comment.