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 7, 2025
1 parent 1434308 commit 84229e6
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 ""
}
Expand Down

0 comments on commit 84229e6

Please sign in to comment.