This repository was archived by the owner on Dec 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
Cannot resize to 0 instances #12
Copy link
Copy link
Closed
Labels
🚨This issue needs some love.This issue needs some love.api: computeIssues related to the googleapis/python-compute API.Issues related to the googleapis/python-compute API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
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-compute/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py
Line 1339 in 16e7294
| "{k}={v}".format(k=k, v=v) for k, v in query_params.items() if v |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.api: computeIssues related to the googleapis/python-compute API.Issues related to the googleapis/python-compute API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.