digitalocean / digitalocean/pydo
Just created droplets not immediately listed on `.list()` responses.
- Dominant language
- Python
- Stars
- 140
- Forks
- 68
- Avg merge
- 9h 52m
- Merged PRs (30d)
- 7
Description
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 https://github.com/digitalocean/api-v2/issues/202.
The droplet not listed in the droplets list response even after successful request to create droplet endpoint.
Request using pydo
```python
droplets = client.droplets.create({
"name": "xxx",
"region": "nyc1",
"size": "xxx",
"image": "xxx",
...
```
Response
```json
{"droplet": {"id": 1234567,
"name": "xxxxxx",
"memory": 245760,
"vcpus": 20,
"disk": 720,
...
"status": "new",
...
}}
```
But in the list it show 0 containers with the name
```json
{"droplets": [], "links": {}, "meta": {"total": 0}}
```
After couple of seconds then it actually listed
```json
{"droplets": [{"id": 123456789,
"name": "xxxxxx",
"memory": 245760,
"vcpus": 20,
"disk": 720,
...
"status": "new",
...
}]}
```
Contributor guide
Assessment
This issue has not been assessed yet.