From 679be2be58a975e874fd97616c7014f0726460c1 Mon Sep 17 00:00:00 2001 From: NetDevOpsStation Date: Mon, 18 Sep 2023 12:04:57 +0800 Subject: [PATCH] Update hp_comware.py and hp_procurve.py to fix bug of output end error in disable paging (#3141) --- netmiko/hp/hp_comware.py | 2 +- netmiko/hp/hp_procurve.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netmiko/hp/hp_comware.py b/netmiko/hp/hp_comware.py index 7a0bb8d96..b7c4b13b8 100644 --- a/netmiko/hp/hp_comware.py +++ b/netmiko/hp/hp_comware.py @@ -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( diff --git a/netmiko/hp/hp_procurve.py b/netmiko/hp/hp_procurve.py index f59394981..1a19cf1e0 100644 --- a/netmiko/hp/hp_procurve.py +++ b/netmiko/hp/hp_procurve.py @@ -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(