Title: Gateways: Confusing output for list_devices_for_gateway · Issue #1997 · GoogleCloudPlatform/python-docs-samples · GitHub
Open Graph Title: Gateways: Confusing output for list_devices_for_gateway · Issue #1997 · GoogleCloudPlatform/python-docs-samples
X Title: Gateways: Confusing output for list_devices_for_gateway · Issue #1997 · GoogleCloudPlatform/python-docs-samples
Description: The list_devices_for_gateway function in gateway/gateway.py has a loop that isn't exercised which results in confusing output. There is no 'deviceNumIds' key in the devices dict . In this example 'my-node-device' is bound to gateway 'tes...
Open Graph Description: The list_devices_for_gateway function in gateway/gateway.py has a loop that isn't exercised which results in confusing output. There is no 'deviceNumIds' key in the devices dict . In this example '...
X Description: The list_devices_for_gateway function in gateway/gateway.py has a loop that isn't exercised which results in confusing output. There is no 'deviceNumIds' key in the devices dict . In th...
Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/1997
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Gateways: Confusing output for list_devices_for_gateway","articleBody":"The list_devices_for_gateway function in gateway/gateway.py has a [loop](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/3b84c35aaf6f585222e54e77696ecab639b14692/iot/api-client/beta-features/gateway/gateway.py#L318-L327) that isn't exercised which results in confusing output. There is no 'deviceNumIds' key in the devices dict .\r\n\r\nIn this example 'my-node-device' is bound to gateway 'testgateway'\r\n```\r\n$ python gateway.py --service_account_json XYZ.json --registry_id=my-registry --device_id=null --gateway_id=testgateway --project_id=myproject list_devices_for_gateway\r\nDevice: 2587394384972593 : my-node-device\r\nNo devices bound to gateway testgateway\r\n```\r\nThe dict at [devices dict](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/3b84c35aaf6f585222e54e77696ecab639b14692/iot/api-client/beta-features/gateway/gateway.py#L307) is missing 'deviceNumIds'\r\n```\r\n{u'devices': [{u'numId': u'2587394384972593', u'id': u'my-node-device'}]}\r\n```","author":{"url":"https://github.com/stevebriskin","@type":"Person","name":"stevebriskin"},"datePublished":"2019-02-05T21:00:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1997/python-docs-samples/issues/1997"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9e0e2413-1556-1eb2-c461-987184fe48b2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DAE2:299DE6:5B940:7E34A:6A4D2D7A |
| html-safe-nonce | 1f50928aea2f173789a8155e787eed8798564aec82d1f866726663d11937d6b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUUyOjI5OURFNjo1Qjk0MDo3RTM0QTo2QTREMkQ3QSIsInZpc2l0b3JfaWQiOiIzNDU4NTEzNTgyMTM5NzE0OTM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 17d29cc14db6c7a35bcc41ee51abb18d44147e26ce64cb7382263cbd5d7fddee |
| hovercard-subject-tag | issue:406971882 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GoogleCloudPlatform/python-docs-samples/1997/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e013205641f34f6d58f24f2c44128bffeeeacff0bbe7124ed5842fcab37858d2/GoogleCloudPlatform/python-docs-samples/issues/1997 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e013205641f34f6d58f24f2c44128bffeeeacff0bbe7124ed5842fcab37858d2/GoogleCloudPlatform/python-docs-samples/issues/1997 |
| og:image:alt | The list_devices_for_gateway function in gateway/gateway.py has a loop that isn't exercised which results in confusing output. There is no 'deviceNumIds' key in the devices dict . In this example '... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stevebriskin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git |
| octolytics-dimension-user_id | 2810941 |
| octolytics-dimension-user_login | GoogleCloudPlatform |
| octolytics-dimension-repository_id | 35065876 |
| octolytics-dimension-repository_nwo | GoogleCloudPlatform/python-docs-samples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35065876 |
| octolytics-dimension-repository_network_root_nwo | GoogleCloudPlatform/python-docs-samples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width