Skip to content

Conversation

@Sh4d1
Copy link
Contributor

@Sh4d1 Sh4d1 commented Sep 16, 2019

Currently, when attaching a volume, the sdk attach it to the ID that is the len of the volume list. Unfortunately, if the list is 0, 1, 2 and the volume 1 is removed, the list becomes 0, 2. This leads to a newly attached volumes to be attached to the ID 2, thus overriding the already existing volume. This fix this issue by looping over all the keys, and attaching to a non existent key.

Signed-off-by: Patrik Cyvoct [email protected]

Signed-off-by: Patrik Cyvoct <[email protected]>
@Sh4d1 Sh4d1 force-pushed the fix_attach_volumes branch from 5d20d9a to 5182c48 Compare September 16, 2019 09:02
Copy link
Contributor

@QuentinBrosse QuentinBrosse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for your contribution! 🎉

@QuentinBrosse QuentinBrosse merged commit 1c100a5 into scaleway:master Sep 16, 2019
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