allow owners to view public networks#80
Open
Smithx10 wants to merge 1 commit intoTritonDataCenter:masterfrom
Open
allow owners to view public networks#80Smithx10 wants to merge 1 commit intoTritonDataCenter:masterfrom
Smithx10 wants to merge 1 commit intoTritonDataCenter:masterfrom
Conversation
Contributor
|
Please run "make check" on this and correct any errors it finds, please. |
bahamat
suggested changes
May 21, 2021
| } | ||
| }); | ||
| } | ||
| if (account != null && net.owner_uuids != null && net.owner_uuids.indexOf(account) > -1) { |
Contributor
There was a problem hiding this comment.
In addition to make check issues, this code doesn't work.
[2021-05-21T18:18:53.220Z] ERROR: cloudapi/80319 on 882de077-91f3-4f27-9a24-67d0efe0b8e5: unexpected error (req_id=41d2d897-ae7c-4227-bbcf-27b55247068c)
TypeError: Cannot read property 'indexOf' of undefined
at translateNetwork (/opt/smartdc/cloudapi/lib/endpoints/networks.js:188:24)
at /opt/smartdc/cloudapi/lib/endpoints/networks.js:283:16
at Array.map (native)
at Server.listNetworks (/opt/smartdc/cloudapi/lib/endpoints/networks.js:282:8)
at next (/opt/smartdc/cloudapi/node_modules/restify/lib/server.js:912:30)
at f (/opt/smartdc/cloudapi/node_modules/once/once.js:25:25)
at Server.rateLimit (/opt/smartdc/cloudapi/node_modules/restify/lib/plugins/throttle.js:294:17)
at next (/opt/smartdc/cloudapi/node_modules/restify/lib/server.js:912:30)
at f (/opt/smartdc/cloudapi/node_modules/once/once.js:25:25)
at Server.saveContext (/opt/smartdc/cloudapi/lib/app.js:499:28)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #77