From dd3dda1f9eda79c47947fb1cc88253fc1ac4387d Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Wed, 26 Jul 2023 17:27:37 +0200 Subject: [PATCH] [AWS Orgs] Replace underscore in configuration with hyphen --- config/config.go | 4 ++-- config/config_test.go | 4 ++-- flavors/benchmark/benchmark_test.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/config.go b/config/config.go index 240e274593..a8b806db49 100644 --- a/config/config.go +++ b/config/config.go @@ -75,8 +75,8 @@ type GcpClientOpt struct { } const ( - SingleAccount = "single_account" - OrganizationAccount = "organization_account" + SingleAccount = "single-account" + OrganizationAccount = "organization-account" ) func New(cfg *config.C) (*Config, error) { diff --git a/config/config_test.go b/config/config_test.go index 67152f093a..155d4da21c 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -64,7 +64,7 @@ config: v1: benchmark: cis_eks aws: - account_type: organization_account + account_type: organization-account credentials: access_key_id: key secret_access_key: secret @@ -84,7 +84,7 @@ config: ProfileName: "credential_profile_name", RoleArn: "role_arn", }, - AccountType: "organization_account", + AccountType: "organization-account", }, }, 3, diff --git a/flavors/benchmark/benchmark_test.go b/flavors/benchmark/benchmark_test.go index ce5b33d389..1cb8df6c90 100644 --- a/flavors/benchmark/benchmark_test.go +++ b/flavors/benchmark/benchmark_test.go @@ -93,7 +93,7 @@ func TestNewBenchmark(t *testing.T) { Cred: aws.ConfigAWS{ AccessKeyID: "test", }, - AccountType: "organization_account", + AccountType: "organization-account", }, }, },