Skip to content

Commit

Permalink
Fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Nov 8, 2024
1 parent 8fd7e11 commit 25be4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netmiko/nokia/nokia_srl.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ def session_preparation(self) -> None:
self.set_base_prompt()

def strip_prompt(self, *args: Any, **kwargs: Any) -> str:
"""Strip the line1 of multiline prompt from the output."""
"""Strip the prompt and the additional context line"""
a_string = super().strip_prompt(*args, **kwargs)
return self._strip_context_items(a_string)

def _strip_context_items(self, a_string: str) -> str:
"""Strip NokiaSRL-specific output.
Nokia will put extra context is line 1 of the prompt, such as:
Nokia will put extra context in the 1st line of the prompt, such as:
--{ running }--[ ]--
--{ candidate private private-admin }--[ ]--
--{ candidate private private-admin }--[ ]--
Expand Down

0 comments on commit 25be4a9

Please sign in to comment.