Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't inspect snapshot #510

Closed
simonnilsson opened this issue Jun 13, 2018 · 1 comment
Closed

Can't inspect snapshot #510

simonnilsson opened this issue Jun 13, 2018 · 1 comment

Comments

@simonnilsson
Copy link

While trying to inspect a snapshot I get the following error:

scw images -f type=snapshot -q
6080db7b-0e1f-40fd-865d-1615d0545dc3

scw inspect 6080db7b-0e1f-40fd-865d-1615d0545dc3
ERRO[0000] Unable to resolve identifier 6080db7b-0e1f-40fd-865d-1615d0545dc3
FATA[0000] cannot execute 'inspect': at least 1 item failed to be inspected

Is this a bug or am I doing something wrong? From scw inspect --help inspecting snapshots should be possible.

@brmzkw
Copy link
Contributor

brmzkw commented Jun 27, 2018

Hello,

After spending some time to understand the problem by trying to follow the various goroutines/channels/callbacks/cache... It appears the problem comes from https://github.com/scaleway/scaleway-cli/blob/master/pkg/api/api.go#L1693

s.Cache.InsertSnapshot takes two empty strings for the region and the architecture. If the first parameter is set to "par1" (assuming you are trying to inspect a snapshot from the paris region), a result is displayed.

I still need to find a way to dynamically get this value.

@brmzkw brmzkw closed this as completed in d55e4b7 Jun 28, 2018
clement-gilbert pushed a commit to clement-gilbert/scaleway-cli that referenced this issue Mar 3, 2022
Co-authored-by: Clément Decoodt <[email protected]>
Co-authored-by: Rémy Léone <[email protected]>
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

No branches or pull requests

2 participants