From 0d6d146139122aad9f18ff5eb6eba2e81690cce4 Mon Sep 17 00:00:00 2001 From: Joshua Robinson <51381009+Gatorjosh14@users.noreply.github.com> Date: Wed, 25 Oct 2023 10:56:55 -0400 Subject: [PATCH] attempting to correct error from linters report --- netmiko/adtran/adtran.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netmiko/adtran/adtran.py b/netmiko/adtran/adtran.py index bfed1c404..cea7109b3 100644 --- a/netmiko/adtran/adtran.py +++ b/netmiko/adtran/adtran.py @@ -28,7 +28,7 @@ def enable( self, cmd: str = "enable", pattern: str = "ssword", - enable_pattern: str = "Falling back", + enable_pattern: Optional[str] = "Falling back", check_state: bool = True, re_flags: int = re.IGNORECASE, ) -> str: @@ -58,7 +58,7 @@ def enable( if re.search(pattern, output): self.write_channel(self.normalize_cmd(self.secret)) output += self.read_until_prompt_or_pattern( - pattern=enable_pattern, re_flags=re_flags + pattern=str(enable_pattern), re_flags=re_flags ) # Search for terminating pattern if defined