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

detailled debug for findImageByName #80

Merged
merged 1 commit into from
Dec 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions builder/nutanix/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ func findImageByName(conn *v3.Client, name string) (*v3.ImageIntentResponse, err
}

if len(found) > 1 {
return nil, fmt.Errorf("your query returned more than one result. Please use soure_image_uuid argument instead")
return nil, fmt.Errorf("your query returned multiple results with name %s. Please use soure_image_uuid argument instead", name)
}

if len(found) == 0 {
return nil, fmt.Errorf("image with the given name, not found")
return nil, fmt.Errorf("image %s not found", name)
}

return findImageByUUID(conn, *found[0].Metadata.UUID)
Expand Down