Skip to content

Commit

Permalink
CDPCP-10922 - Error message on GCP environment creation references "A…
Browse files Browse the repository at this point in the history
…ws environment"
  • Loading branch information
gregito committed Nov 16, 2023
1 parent d3c3fc7 commit 58bd095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/environments/environment_action_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func isEnvNotFoundError(err error) bool {

func waitForCreateEnvironmentWithDiagnosticHandle(ctx context.Context, client *cdp.Client, id string, envName string, resp *resource.CreateResponse, options *utils.PollingOptions) (*operations.DescribeEnvironmentOK, error) {
if err := waitForEnvironmentToBeAvailable(id, timeoutOneHour, client.Environments, ctx, options); err != nil {
utils.AddEnvironmentDiagnosticsError(err, &resp.Diagnostics, "create AWS Environment")
utils.AddEnvironmentDiagnosticsError(err, &resp.Diagnostics, "create Environment failed")
return nil, err
}

Expand All @@ -97,7 +97,7 @@ func waitForCreateEnvironmentWithDiagnosticHandle(ctx context.Context, client *c
resp.State.RemoveResource(ctx)
return nil, err
}
utils.AddEnvironmentDiagnosticsError(err, &resp.Diagnostics, "create AWS Environment")
utils.AddEnvironmentDiagnosticsError(err, &resp.Diagnostics, "create Environment failed")
return nil, err
}
return descEnvResp, nil
Expand Down

0 comments on commit 58bd095

Please sign in to comment.