-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Notes returned as valid json instead of inspected string over RPC #21292
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
base: master
Are you sure you want to change the base?
Changes from all 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 |
|---|---|---|
|
|
@@ -1130,8 +1130,8 @@ def rpc_report_note(xopts) | |
| # * 'time' [Integer] Creation date. | ||
| # * 'host' [String] Host address. | ||
| # * 'service' [String] Service name or port. | ||
| # * 'type' [String] Host type. | ||
| # * 'data' [String] Host data. | ||
| # * 'type' [String] Note type. | ||
| # * 'data' [Hash, String, nil] Note data. | ||
| # @example Here's how you would use this from the client: | ||
| # # This gives you all the notes. | ||
| # rpc.call('db.notes', {}) | ||
|
|
@@ -1157,7 +1157,7 @@ def rpc_notes(xopts) | |
| note[:host] = n.host.address if n.host | ||
| note[:service] = n.service.name || n.service.port if n.service | ||
| note[:type ] = n.ntype.to_s | ||
| note[:data] = n.data.inspect | ||
| note[:data] = n.data | ||
|
Comment on lines
1158
to
+1160
|
||
| ret[:notes] << note | ||
|
Comment on lines
1159
to
1161
|
||
| end | ||
| ret | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.