Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the difference between the three similar methods - check_*_for_os #194

Open
saveshodhan opened this issue May 6, 2019 · 0 comments

Comments

@saveshodhan
Copy link
Contributor

In the driver specific files (/exscript/Exscript/protocols/drivers) we see three similar methods:
check_head_for_os
check_protocol_for_os
check_response_for_os

Each of these accept a string and upon a successful match, a confidence value is set.

Some drivers have just one of these methods, some have multiple.
Is there a convention as to which method is to be used where?

Looking at the files, it seems that:

  • the check_response_for_os is used to match content from the banner
  • the check_head_for_os is used to match content from the text that appears before username is prompted
  • not sure about check_protocol_for_os it only appears in ios.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant