Skip to content

Commit

Permalink
set self.global_cmd_verify=False only if None (ktbyers#2856)
Browse files Browse the repository at this point in the history
Co-authored-by: lucas <[email protected]>
  • Loading branch information
ktbyers and laimaretto authored Jul 12, 2022
1 parent 3079569 commit f53a7a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion netmiko/nokia/nokia_sros.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def session_preparation(self) -> None:
else:
# Classical CLI has no method to set the terminal width nor to disable command
# complete on space; consequently, cmd_verify needs disabled.
self.global_cmd_verify = False
# Only disabled if not set under the ConnectHandler.
if self.global_cmd_verify is None:
self.global_cmd_verify = False
self.disable_paging(command="environment no more", pattern="environment")

# Clear the read buffer
Expand Down

0 comments on commit f53a7a7

Please sign in to comment.