Skip to content

Commit

Permalink
fix: fix unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Nov 20, 2024
1 parent 971495b commit 2906991
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/sdk/models/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ type Resource struct {
}

func (r Resource) UniqueID() string {
return r.ID
if r.ID != "" {
return r.ID
}
if r.ARN != "" {
return r.ARN
}
return r.Name
}

0 comments on commit 2906991

Please sign in to comment.