Skip to content

Commit

Permalink
Remove extra newline before finish message in AddFinishSshLoginMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
kpushkaryov committed Jan 23, 2024
1 parent f5f19a1 commit c02d613
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pleskdistup/actions/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ def _revert_action(self) -> action.ActionResult:


class AddFinishSshLoginMessage(action.ActiveAction):
"""Add dist-upgrade finish message to MOTD.
Args:
new_os: New OS name and version.
"""
finish_message: str

def __init__(self, new_os: str):
self.name = "add finish SSH login message"
self.finish_message = f"""
The server has been upgraded to {new_os}.
"""
self.finish_message = f"""The server has been upgraded to {new_os}.\n"""

def _prepare_action(self) -> action.ActionResult:
return action.ActionResult()
Expand Down

0 comments on commit c02d613

Please sign in to comment.