Skip to content

Commit

Permalink
save a line!
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Aug 28, 2024
1 parent ff28953 commit a99b7ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions salt/_extensions/pillar/backup_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def ext_pillar(minion_id, pillar, base_path="/etc/backup_keys/"):
["ssh-keygen", "-y", "-f", user_private_key_path], stdout=out_file
)

key_data = {"public": None, "private": None}
key_data["public"] = user_public_key_path.read_text()
key_data = {"public": user_public_key_path.read_text()}
if not is_server:
key_data["private"] = user_private_key_path.read_text()

Expand Down

0 comments on commit a99b7ca

Please sign in to comment.