diff --git a/plugins/connection/aws_ssm.py b/plugins/connection/aws_ssm.py index b6be3a80291..af9133ac96e 100644 --- a/plugins/connection/aws_ssm.py +++ b/plugins/connection/aws_ssm.py @@ -704,7 +704,8 @@ def exec_communicate(self, cmd: str, mark_start: str, mark_begin: str, mark_end: # see https://github.com/pylint-dev/pylint/issues/8909) return (returncode, stdout, self._flush_stderr(self._session)) # pylint: disable=unreachable - def generate_mark(self) -> str: + @staticmethod + def generate_mark() -> str: """Generates a random string of characters to delimit SSM CLI commands""" mark = "".join([random.choice(string.ascii_letters) for i in range(Connection.MARK_LENGTH)]) return mark