Skip to content

Commit

Permalink
fixup! refactor: Make available complete image info, instead of UUID …
Browse files Browse the repository at this point in the history
…only

Use longer name for receivers
  • Loading branch information
dlipovetsky committed Jan 21, 2025
1 parent d33b150 commit 26b934b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/v1beta1/nutanix_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ type NutanixResourceIdentifier struct {
Name *string `json:"name,omitempty"`
}

func (i NutanixResourceIdentifier) String() string {
if i.Type == NutanixIdentifierUUID && i.UUID != nil {
return *i.UUID
func (nri NutanixResourceIdentifier) String() string {
if nri.Type == NutanixIdentifierUUID && nri.UUID != nil {
return *nri.UUID
}
if i.Type == NutanixIdentifierName && i.Name != nil {
return *i.Name
if nri.Type == NutanixIdentifierName && nri.Name != nil {
return *nri.Name
}
return ""

Check warning on line 84 in api/v1beta1/nutanix_types.go

View check run for this annotation

Codecov / codecov/patch

api/v1beta1/nutanix_types.go#L77-L84

Added lines #L77 - L84 were not covered by tests
}
Expand Down

0 comments on commit 26b934b

Please sign in to comment.