Skip to content

Commit

Permalink
Merge pull request #89 from chentex/fix-type-issue
Browse files Browse the repository at this point in the history
Fixing type issue in aws configuration
  • Loading branch information
venkataanil authored Nov 14, 2022
2 parents dff57eb + 915260e commit e9d79df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/tests/handlers/clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ func generateCreateClusterTargeter(ctx context.Context, ID, method, url string,
// CCS is used to create fake clusters within the AWS
// environment supplied by the user executing this test.
// Not fully supporting multi account now, so using first accaunt always
ccsRegion := awsCreds[0].(map[interface{}]interface{})["region"].(string)
ccsAccessKey := awsCreds[0].(map[interface{}]interface{})["access-key"].(string)
ccsSecretKey := awsCreds[0].(map[interface{}]interface{})["secret-access-key"].(string)
ccsAccountID := awsCreds[0].(map[interface{}]interface{})["account-id"].(string)
ccsRegion := awsCreds[0].(map[string]interface{})["region"].(string)
ccsAccessKey := awsCreds[0].(map[string]interface{})["access-key"].(string)
ccsSecretKey := awsCreds[0].(map[string]interface{})["secret-access-key"].(string)
ccsAccountID := awsCreds[0].(map[string]interface{})["account-id"].(string)

targeter := func(t *vegeta.Target) error {
fakeClusterProps := map[string]string{
Expand Down

0 comments on commit e9d79df

Please sign in to comment.