Skip to content

Commit

Permalink
attempting to correct error from linters report
Browse files Browse the repository at this point in the history
  • Loading branch information
Gatorjosh14 committed Oct 25, 2023
1 parent 32d4f41 commit 0d6d146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netmiko/adtran/adtran.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0d6d146

Please sign in to comment.