Skip to content

Commit

Permalink
Update hp_comware.py and hp_procurve.py to fix bug of output end erro…
Browse files Browse the repository at this point in the history
…r in disable paging (#3141)
  • Loading branch information
jiujing authored Sep 18, 2023
1 parent 2e6c4d5 commit 679be2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netmiko/hp/hp_comware.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def session_preparation(self) -> None:
self._test_channel_read(pattern=r"[>\]]")

self.set_base_prompt()
command = self.RETURN + "screen-length disable"
command = "screen-length disable"
self.disable_paging(command=command)

def config_mode(
Expand Down
2 changes: 1 addition & 1 deletion netmiko/hp/hp_procurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def session_preparation(self) -> None:
# ProCurve requires elevated privileges to disable output paging :-(
self.enable()
self.set_terminal_width(command="terminal width 511", pattern="terminal")
command = self.RETURN + "no page"
command = "no page"
self.disable_paging(command=command)

def check_config_mode(
Expand Down

0 comments on commit 679be2b

Please sign in to comment.