Skip to content

Fix object-storage access-key Update to call its own Read - #511

Open
konih wants to merge 1 commit into
gridscale:masterfrom
konih:fix/objectstorage-update-wrong-read
Open

konih wants to merge 1 commit into
gridscale:masterfrom
konih:fix/objectstorage-update-wrong-read

Conversation

@konih

@konih konih commented Jul 16, 2026

Copy link
Copy Markdown

Problem

resourceGridscaleObjectStorageUpdate returns resourceGridscaleSshkeyRead(d, meta) — a copy-paste slip. After updating a gridscale_object_storage_accesskey, the resource is refreshed with the sshkey Read logic instead of its own, leaving stale/incorrect observed state.

Fix

Call resourceGridscaleObjectStorageRead(d, meta) instead.

resourceGridscaleObjectStorageUpdate returned resourceGridscaleSshkeyRead (a
copy-paste slip), so after updating a gridscale_object_storage_accesskey the
resource was refreshed with the sshkey Read logic, leaving stale/incorrect
observed state. Call resourceGridscaleObjectStorageRead instead.
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.

2 participants