Skip to content

Respect location when listing DigitalOcean images - #2257

Open
JayDev-27 wants to merge 1 commit into
apache:trunkfrom
JayDev-27:fix/digitalocean-image-location
Open

JayDev-27 wants to merge 1 commit into
apache:trunkfrom
JayDev-27:fix/digitalocean-image-location

Conversation

@JayDev-27

Copy link
Copy Markdown

Respect location when listing DigitalOcean images

Description

list_images(location=...) now filters the collected image results by the requested location ID using the provider's region slugs. Omitting the location still returns all images. An image with missing or null region data can be listed without a location and is excluded from region-specific matches. The filter uses data already in the response, keeping the same API calls.

Refs #2256.

Validation

  • Two regression cases failed before the fix. All 64 DigitalOcean compute, common and DNS tests passed afterward with the repository's mock HTTP fixtures.
  • Black, isort, Flake8 and git diff --check passed.
  • Validation used fixtures and made no live DigitalOcean API calls.

AI assistance

OpenAI Codex reproduced the behavior, prepared the patch and tests, and ran validation. Jatin Pandey reviewed the exact diff before submission. The commit records Codex provenance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant