-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
MODULES-5483: Auth and FQDN certs => Fail #369
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -275,6 +275,7 @@ def self.mongo_command(command, host=nil, retries=4) | |
|
||
#Hack to avoid non-json empty sets | ||
output = "{}" if output == "null\n" | ||
output = "{}" if output == "\nnull\n" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the purpose of this change? Could you describe it as part of the commit message? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If a mongo connection with --sslAllowInvalidHostnames is made, it prints a warning like: |
||
|
||
# Parse the JSON output and return | ||
JSON.parse(output) | ||
|
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.
It looks like this changes behavior such that previously it returned
true
orfalse
and now would return 'true' or 'false' as strings. Is this intended?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.
This logic was implemented by #348 and i just copied it.
All i can say is that it works as expected: