advpyneng-examples-exercises icon indicating copy to clipboard operation
advpyneng-examples-exercises copied to clipboard

task_1_4.py | wrong "prompt"

Open AntonMuravlev opened this issue 2 years ago • 0 comments

Hello!

If device params dict has wrong secret password CiscoTelnet instance will have wrong "prompt" = "#"

        if match_index == 0 and secret:
            self._write_line("enable")
            self._read_until("Password")
            self._write_line(secret)
            self._read_until("#") #We have to check output here
            self.prompt = "#"

AntonMuravlev avatar Jul 26 '22 09:07 AntonMuravlev