Skip to content

Commit 55571a7

Browse files
Update opensearchservice-packages.go
Confirmed working cleanup of os packages.
1 parent b5c792e commit 55571a7

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

resources/opensearchservice-packages.go

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,10 @@ func ListOSPackages(sess *session.Session) ([]Resource, error) {
2727
resources := make([]Resource, 0)
2828

2929
for _, pkg := range listResp.PackageDetailsList {
30-
domainResp, err := svc.ListDomainsForPackage(&opensearchservice.ListDomainsForPackageInput{
31-
PackageID: pkg.PackageID,
30+
resources = append(resources, &OSPackage{
31+
svc: svc,
32+
packageID: pkg.PackageID,
3233
})
33-
if err != nil {
34-
return nil, err
35-
}
36-
37-
for _, domain := range domainResp.DomainPackageDetailsList {
38-
resources = append(resources, &OSPackage{
39-
svc: svc,
40-
domainName: domain.DomainName,
41-
packageID: pkg.PackageID,
42-
})
43-
}
4434
}
4535

4636
return resources, nil

0 commit comments

Comments
 (0)