Skip to content

Commit

Permalink
Merge pull request #3 from opengovern/fix-sync
Browse files Browse the repository at this point in the history
fix: fix unique id
  • Loading branch information
artaasadi authored Nov 20, 2024
2 parents 22efdc8 + 2906991 commit 5b57b9d
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 5b57b9d

Please sign in to comment.