fgimian / paramiko-expect

A Python expect-like extension for the Paramiko SSH library which also supports tailing logs.
MIT License
204 stars 78 forks source link

fixes_48, fixes_63, fixes_58 #65

Closed sar772004 closed 3 years ago

sar772004 commented 3 years ago

fixes 63 fixes 58

paramiko expect used to hang as recv was sometimes called before pssh recv was ready, added a check used to return duplicate o/p on consecutive cmds sometimes, possibly due to the recv chk missing long outputs used to check the entire cmd regex, which was slow, now check just the last line of o/p instead for the regex_string

sar772004 commented 3 years ago

@fgimian @fruch

Can you please review the changes, i have tested them with my current networking infra. As the test pipelines don't seem to be working, will appreciate some help on getting this change in. (helps some of the outstanding issues)