Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion netmiko/adtran/adtran.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def enable(
)

# Send the "secret" in response to password pattern
if re.search(pattern, output):
if re.search(pattern, output, flags=re_flags):
self.write_channel(self.normalize_cmd(self.secret))

# Handle the fallback to local authentication case
Expand Down
2 changes: 1 addition & 1 deletion netmiko/base_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@ def enable(
)

# Send the "secret" in response to password pattern
if re.search(pattern, output):
if re.search(pattern, output, flags=re_flags):
self.write_channel(self.normalize_cmd(self.secret))
output += self.read_until_prompt()

Expand Down
2 changes: 1 addition & 1 deletion netmiko/tplink/tplink_jetstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def enable(
pattern=pattern, re_flags=re_flags, read_entire_line=True
)
output += new_data
if re.search(pattern, new_data):
if re.search(pattern, new_data, flags=re_flags):
self.write_channel(self.normalize_cmd(self.secret))
output += self.read_until_prompt(read_entire_line=True)
except ReadTimeout:
Expand Down