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
Fix check_conn? method in cisco_ironport_enum #7622
Conversation
return 1 | ||
if res | ||
print_good("#{rhost}:#{rport} - Server is responsive...") | ||
return true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using explicit return
statements because it looks weird without...
@@ -60,10 +60,14 @@ def check_conn? | |||
'uri' => '/', | |||
'method' => 'GET' | |||
}) | |||
print_good("#{rhost}:#{rport} - Server is responsive...") | |||
return 1 | |||
if res |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what the appropriate response code should be. Probably 200. I'm not sure it matters, since the check is already simplistic.
Verified on both a working/good target and when the target isn't there:
|
Thanks, @wvu-r7!! 👍 |
No release notes needed. |
For posterity, I was able to replicate a failure scenario in #7611 by closing |
#7611 (comment)
#7611 (comment)