Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve error handling #92

Closed
Closed
Assignees
ethanndickson
@michvllni

Description

@michvllni

When deploying a template via the coderd_template resource, the errors from the internal commands do not bubble up.

All I get is for example this:

╷│ Error: Client Error│ │   with coderd_template.templates["az-ps-function"],│   on templates.tf line 2, in resource "coderd_template" "templates":│    2: resource "coderd_template" "templates" {│ │ failed to wait for job: provisioner job did not succeed: failed (template│ import provision for start: terraform plan: exit status 1)╵

I have to use debug mode in terraform to get the actual error, which is very cumbersome:
2024-09-11T14:48:56.832Z [INFO] provider.terraform-provider-coderd_v0.0.4: A data resource "coder_parameter" "ado_projects" has not been declared in the root module.: job_stage="Detecting persistent resources" log_source=provisioner tf_req_id=6f199328-b1d4-3746-8d48-3cb8af035cfe job_id=10626 tf_provider_addr=registry.terraform.io/coder/coderd tf_resource_type=coderd_template @caller=github.com/coder/terraform-provider-coderd/internal/provider/template_resource.go:954 @module=coderd created_at=2024-09-11T14:48:56.783Z level=error tf_rpc=ApplyResourceChange timestamp=2024-09-11T14:48:56.832Z

It would be great if errors from the executed commands would be visible in the output.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp