From 915260ea22ae9cbaa9955c55753e0c9b9b1141a0 Mon Sep 17 00:00:00 2001 From: Vicente Zepeda Mas Date: Wed, 9 Nov 2022 15:12:41 +0100 Subject: [PATCH] Fixing type issue in aws configuration Signed-off-by: Vicente Zepeda Mas --- pkg/tests/handlers/clusters.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/tests/handlers/clusters.go b/pkg/tests/handlers/clusters.go index 64c3f19..f3119f8 100644 --- a/pkg/tests/handlers/clusters.go +++ b/pkg/tests/handlers/clusters.go @@ -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{