Skip to content

Commit

Permalink
Merge pull request #96 from hortonworks/CB-21021-2
Browse files Browse the repository at this point in the history
CB-21021 Fix TerminateStacks and DeleteDisks for AWS_GOV
  • Loading branch information
doktoric authored Apr 3, 2023
2 parents ed00eab + 1b8e4b5 commit b6738e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,13 @@ func (p awsProvider) TerminateStacks(stacks *types.StackContainer) []error {
ec2Clients, _ := p.getEc2AndCTClientsByRegion()
elbClients := p.getElbClientsByRegion()
cloudWatchClients := p.getCloudWatchClientsByRegion()
return deleteStacks(cfClients, rdsClients, ec2Clients, elbClients, cloudWatchClients, stacks.Get(types.AWS))
return deleteStacks(cfClients, rdsClients, ec2Clients, elbClients, cloudWatchClients, stacks.Get(p.GetCloudType()))
}

func (p awsProvider) DeleteDisks(volumes *types.DiskContainer) []error {
log.Debug("[AWS] Delete volumes")
ec2Clients, _ := p.getEc2AndCTClientsByRegion()
return deleteVolumes(p.GetCloudType(), ec2Clients, volumes.Get(types.AWS))
return deleteVolumes(p.GetCloudType(), ec2Clients, volumes.Get(p.GetCloudType()))
}

func (p awsProvider) GetImages() ([]*types.Image, error) {
Expand Down

0 comments on commit b6738e7

Please sign in to comment.