diff --git a/pleskdistup/actions/common.py b/pleskdistup/actions/common.py index 5775a90..a82f24c 100644 --- a/pleskdistup/actions/common.py +++ b/pleskdistup/actions/common.py @@ -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()