Skip to content

Commit

Permalink
Filter additional "pkg-*" default packages
Browse files Browse the repository at this point in the history
  • Loading branch information
danarbaugh committed Nov 8, 2024
1 parent 336fed8 commit 6aa8fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/opensearchservice-packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func ListOSPackages(sess *session.Session) ([]Resource, error) {
}

func (o *OSPackage) Filter() error {
if strings.HasPrefix(*o.packageID, "G") {
if strings.HasPrefix(*o.packageID, "G") || strings.HasPrefix(*o.packageID, "pkg-") {
return fmt.Errorf("cannot delete default opensearch packages")
}
return nil
Expand Down

0 comments on commit 6aa8fd7

Please sign in to comment.