Skip to content

Commit

Permalink
detailled debug for findImageByName (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxtof authored Dec 28, 2022
1 parent 9c176c4 commit 824a051
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 824a051

Please sign in to comment.