diff --git a/cli/cmd/resource_group_v2.go b/cli/cmd/resource_group_v2.go index ef01b9f37..8002c82c7 100644 --- a/cli/cmd/resource_group_v2.go +++ b/cli/cmd/resource_group_v2.go @@ -27,7 +27,7 @@ import ( "github.com/lacework/go-sdk/api" ) -func createResourceGroupV2(resourceType string) error { +func createResourceGroup(resourceType string) error { questions := []*survey.Question{ { Name: "name", diff --git a/cli/cmd/resource_groups.go b/cli/cmd/resource_groups.go index 5c7dfaf6e..e3667c7fd 100644 --- a/cli/cmd/resource_groups.go +++ b/cli/cmd/resource_groups.go @@ -210,19 +210,19 @@ func promptCreateResourceGroup() error { switch group { case "AWS": - return createResourceGroupV2("AWS") + return createResourceGroup("AWS") case "AZURE": - return createResourceGroupV2("AZURE") + return createResourceGroup("AZURE") case "GCP": - return createResourceGroupV2("GCP") + return createResourceGroup("GCP") case "CONTAINER": - return createResourceGroupV2("CONTAINER") + return createResourceGroup("CONTAINER") case "MACHINE": - return createResourceGroupV2("MACHINE") + return createResourceGroup("MACHINE") case "OCI": - return createResourceGroupV2("OCI") + return createResourceGroup("OCI") case "KUBERNETES": - return createResourceGroupV2("KUBERNETES") + return createResourceGroup("KUBERNETES") default: return errors.New("unknown resource group type") } diff --git a/integration/resource_groups_test.go b/integration/resource_groups_test.go index c5c64a2e9..acf7c90ff 100644 --- a/integration/resource_groups_test.go +++ b/integration/resource_groups_test.go @@ -61,12 +61,12 @@ func createResourceGroup(typ string, uid string) (string, error) { return "", errors.New("non-zero exit code") } - var resourceGroupV2Response api.ResourceGroupResponse - err = json.Unmarshal(out.Bytes(), &resourceGroupV2Response) + var resourceGroupResponse api.ResourceGroupResponse + err = json.Unmarshal(out.Bytes(), &resourceGroupResponse) if err != nil { return "", err } - return resourceGroupV2Response.Data.ID(), nil + return resourceGroupResponse.Data.ID(), nil } func popResourceGroup() (string, error) {