Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wai-wong-edb committed Aug 19, 2024
1 parent 1ea4e2f commit 2e469c2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
4 changes: 2 additions & 2 deletions examples/data-sources/biganimal_csp_tag/data-source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ terraform {
}

data "biganimal_csp_tag" "this" {
project_id = "ex-project-id"
cloud_provider_id = "ex-cloud-provider-id"
project_id = "ex-project-id" # ex: "prj_12345"
cloud_provider_id = "ex-cloud-provider-id" # ex: "aws"
}

output "csp_tags" {
Expand Down
34 changes: 17 additions & 17 deletions examples/resources/biganimal_csp_tag/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@ terraform {
}

resource "biganimal_csp_tag" "this" {
project_id = <example_project_id>
cloud_provider_id = <example_cloud_provider_id> #ex cloud-provider-id values ["bah:aws", "bah:azure", "bah:gcp", "aws", "azure", "gcp"]
project_id = "ex-project-id" # ex: "prj_12345"
cloud_provider_id = "ex-cloud-provider-id" # ex cloud-provider-id values ["bah:aws", "bah:azure", "bah:gcp", "aws", "azure", "gcp"]

add_tags = [
#{
# csp_tag_key = <example_csp_tag_key>
# csp_tag_value = <example_csp_tag_value>
# csp_tag_key = <ex-csp-tag-key> # ex: "key"
# csp_tag_value = <ex-csp-tag-value> # ex: "value"
#},
#{
# csp_tag_key = <example_csp_tag_key>
# csp_tag_value = <example_csp_tag_value>
# csp_tag_key = <ex-csp-tag-key>
# csp_tag_value = <ex-csp-tag-value>
#},
]

delete_tags = [
#<example_csp_tag_id>,
#<example_csp_tag_id>,
#<ex-csp-tag-id>, # ex: "id"
#<ex-csp-tag-id>,
]

edit_tags = [
#{
# csp_tag_id = <example_csp_tag_id>
# csp_tag_key = <example_csp_tag_key>
# csp_tag_value = <example_csp_tag_value>
# csp_tag_id = <ex-csp-tag-id> # ex: "id"
# csp_tag_key = <ex-csp-tag-key> # ex: "key"
# csp_tag_value = <ex-csp-tag-value> # ex: "value"
# status = "OK"
#},
#{
# csp_tag_id = <example_csp_tag_id>
# csp_tag_key = <example_csp_tag_key>
# csp_tag_value = <example_csp_tag_value>
# csp_tag_id = <ex-csp-tag-id>
# csp_tag_key = <ex-csp-tag-key>
# csp_tag_value = <ex-csp-tag-value>
# status = "OK"
#},
]
Expand Down
1 change: 0 additions & 1 deletion pkg/provider/resource_csp_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ func (tr *cSPTagResource) Delete(ctx context.Context, req resource.DeleteRequest
"Delete operation is not supported for CSP Tag resource",
"Please delete csp tags using an update operation on the field 'delete_tags'",
)
return
}

func (tr *cSPTagResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {
Expand Down

0 comments on commit 2e469c2

Please sign in to comment.