-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
Description
Feature Request
Is your feature request related to a problem? Please describe.
Some users are surprised when resources are automatically fetched if data is missing in their BoundModel.
Describe the solution you'd like
Allow the users to disable this magical feature, so the user can explicitly hydrate the models.
Describe alternatives you've considered
- Remove the feature altogether, while I think it would make the API client so much easier, this feature has been baked into the library for ages. And many people might be relying on it without knowing it.
- Provide mitigation, such as a cached session for a scoped context: https://github.com/ansible-collections/hetzner.hcloud/blob/a041bee1b341d8d1a4fee19abf68f97814a2947e/plugins/module_utils/client.py#L70-L108 and https://github.com/ansible-collections/hetzner.hcloud/blob/a041bee1b341d8d1a4fee19abf68f97814a2947e/plugins/inventory/hcloud.py#L473-L474
Teachability, Documentation, Adoption, Migration Strategy