diff --git a/pleskdistup/actions/distupgrade.py b/pleskdistup/actions/distupgrade.py index c239bd2..98c251a 100644 --- a/pleskdistup/actions/distupgrade.py +++ b/pleskdistup/actions/distupgrade.py @@ -169,9 +169,13 @@ def __init__( self._name = name @property - def name(self): + def name(self) -> str: return self._name.format(self=self) + @name.setter + def name(self, val: str) -> None: + self._name = val + def _apply_replace_to_file(self, fpath: str, ptrn: re.Pattern, to_regexp: str) -> None: changed = False new_lines = []