Title: Cannot resize to 0 instances · Issue #12 · googleapis/python-compute · GitHub
Open Graph Title: Cannot resize to 0 instances · Issue #12 · googleapis/python-compute
X Title: Cannot resize to 0 instances · Issue #12 · googleapis/python-compute
Description: Hi All, If target size of the region instance group is 0, resize fails with bad request, since ?size=0 parameter is removed The following check should be if v is not None currently it is if v and 0 equals to False in Python. python-compu...
Open Graph Description: Hi All, If target size of the region instance group is 0, resize fails with bad request, since ?size=0 parameter is removed The following check should be if v is not None currently it is if v and 0...
X Description: Hi All, If target size of the region instance group is 0, resize fails with bad request, since ?size=0 parameter is removed The following check should be if v is not None currently it is if v and 0...
Opengraph URL: https://github.com/googleapis/python-compute/issues/12
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot resize to 0 instances","articleBody":"Hi All,\r\n\r\nIf target size of the region instance group is 0, resize fails with bad request, since `?size=0` parameter is removed\r\n\r\nThe following check should be `if v is not None` currently it is `if v` and 0 equals to False in Python.\r\n\r\nhttps://github.com/googleapis/python-compute/blob/16e7294cd536af9a8bf8e4e99219a883339aa955/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py#L1339","author":{"url":"https://github.com/igor-solomatov","@type":"Person","name":"igor-solomatov"},"datePublished":"2021-02-02T15:53:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/12/python-compute/issues/12"}
| 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:8416f6c8-dabd-1150-922e-0913b14f3740 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C166:3B8B53:C5269A:120F470:6A4E23D1 |
| html-safe-nonce | f42da1a544e58fd7226121fd7711ea1964b39fc817478bfcdbf1a29042220c04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTY2OjNCOEI1MzpDNTI2OUE6MTIwRjQ3MDo2QTRFMjNEMSIsInZpc2l0b3JfaWQiOiI2NTA0MzU0MTIwNDQyMTkyODQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1a7a0c30ae15ca3db37e07b8ae24f1d35fe4e13fc871d37681a6165f6f2dc2ac |
| hovercard-subject-tag | issue:799406689 |
| 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/googleapis/python-compute/12/issue_layout |
| twitter:image | https://opengraph.githubassets.com/efba62a35541c19a7e050a99c11d9a6f57aead911cdd9bf418f69d4fa716e5fd/googleapis/python-compute/issues/12 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/efba62a35541c19a7e050a99c11d9a6f57aead911cdd9bf418f69d4fa716e5fd/googleapis/python-compute/issues/12 |
| og:image:alt | Hi All, If target size of the region instance group is 0, resize fails with bad request, since ?size=0 parameter is removed The following check should be if v is not None currently it is if v and 0... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | igor-solomatov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-compute git https://github.com/googleapis/python-compute.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 328021905 |
| octolytics-dimension-repository_nwo | googleapis/python-compute |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 328021905 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-compute |
| 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 | 5fe497b4815fcce3df76c0e246faa739a82c3124 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width