Skip to content

Just created droplets not immediately listed on .list() responses. #468

Open
@fikrapdso

Description

@fikrapdso

I don't really know this is part of the client cache or the api-v2 itself.
So i created the issue in api-v2 repo as well digitalocean/api-v2#202.

The droplet not listed in the droplets list response even after successful request to create droplet endpoint.
Request using pydo

droplets = client.droplets.create({
            "name": "xxx",
            "region": "nyc1",
            "size": "xxx",
            "image": "xxx",
...

Response

{"droplet": {"id": 1234567,
  "name": "xxxxxx",
  "memory": 245760,
  "vcpus": 20,
  "disk": 720,
  ...
  "status": "new",
  ...
}}

But in the list it show 0 containers with the name

{"droplets": [], "links": {}, "meta": {"total": 0}}

After couple of seconds then it actually listed

{"droplets": [{"id": 123456789,
   "name": "xxxxxx",
   "memory": 245760,
   "vcpus": 20,
   "disk": 720,
   ...
   "status": "new",
   ...
}]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions