From 6aa8fd7112165a22864c3a66c78f19263be1f89a Mon Sep 17 00:00:00 2001 From: Dan Arbaugh Date: Fri, 8 Nov 2024 15:38:51 +0000 Subject: [PATCH] Filter additional "pkg-*" default packages --- resources/opensearchservice-packages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/opensearchservice-packages.go b/resources/opensearchservice-packages.go index 99f336d38..a72469af2 100644 --- a/resources/opensearchservice-packages.go +++ b/resources/opensearchservice-packages.go @@ -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