Skip to content

Commit

Permalink
Add warnings to terraform-cloud backend
Browse files Browse the repository at this point in the history
  • Loading branch information
mutahhir committed Sep 14, 2022
1 parent 5864f13 commit ed06d83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cdktf-cli/lib/models/terraform-cloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export class TerraformCloud implements Terraform {
public async plan(
destroy = false,
refreshOnly = false,
// Parallelism is ignored as custom parallelism is not supported by TFC yet
_parallelism = -1
): Promise<TerraformPlan> {
if (!this.configurationVersionId)
Expand Down Expand Up @@ -353,6 +354,7 @@ export class TerraformCloud implements Terraform {
public async deploy(
_planFile: string,
_refreshOnly?: boolean,
// Parallelism is ignored as custom parallelism is not supported by TFC yet
_parallelism?: number
): Promise<void> {
const sendLog = this.createTerraformLogHandler("deploy");
Expand Down Expand Up @@ -456,7 +458,7 @@ export class TerraformCloud implements Terraform {
this.organizationName,
this.workspaceName
);
} catch (e) {
} catch (e: any) {
if (e.response?.status === 404) {
// return a more descriptive error message as http response is not descriptive enough
// will not be touched by BeautifyErrors decorator
Expand Down

0 comments on commit ed06d83

Please sign in to comment.