From 1d792295432f27be9f71a3cab7affcae7ed1f22a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 22:51:21 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .editorconfig | 2 +- .github/CODEOWNERS | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .github/config/.tflint.hcl | 2 +- .github/workflows/changelog.yaml | 2 +- .github/workflows/tf-static-checks-call.yml | 2 +- .github/workflows/tf-static-checks.yml | 2 +- .github/workflows/tflint.yaml | 6 +++--- .github/workflows/tflint_call.yaml | 2 +- .github/workflows/tfsec.yaml | 2 +- .gitignore | 2 +- .pre-commit-config.yaml | 2 +- .releaserc.json | 2 +- LICENSE | 2 +- Makefile | 2 +- README.md | 6 +++--- README.yaml | 2 +- _example/complete/example.tf | 2 +- _example/complete/output.tf | 2 +- _example/name-specific_subnet/example.tf | 2 +- _example/name-specific_subnet/output.tf | 1 - _example/nat-gateway_subnet/example.tf | 2 +- _test/azure_subnet_test.go | 2 +- main.tf | 2 +- output.tf | 2 +- variable.tf | 2 +- version.tf | 2 +- 27 files changed, 30 insertions(+), 31 deletions(-) diff --git a/.editorconfig b/.editorconfig index 71f6718..88cb251 100644 --- a/.editorconfig +++ b/.editorconfig @@ -27,4 +27,4 @@ tab_width = 2 indent_style = tab [COMMIT_EDITMSG] -max_line_length = 0 \ No newline at end of file +max_line_length = 0 diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4ee3a34..f590a46 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -4,4 +4,4 @@ * @clouddrove/clouddrovians @clouddrove/approvers .github/mergify.yml @clouddrove/admins -.github/CODEOWNERS @clouddrove/admins \ No newline at end of file +.github/CODEOWNERS @clouddrove/admins diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 23e0d41..e414e28 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -9,4 +9,4 @@ ## references * Link to any supporting jira issues or helpful documentation to add some context (e.g. stackoverflow). -* Use `closes #123`, if this PR closes a Jira issue `#123` \ No newline at end of file +* Use `closes #123`, if this PR closes a Jira issue `#123` diff --git a/.github/config/.tflint.hcl b/.github/config/.tflint.hcl index dcd9f9a..69e2c62 100644 --- a/.github/config/.tflint.hcl +++ b/.github/config/.tflint.hcl @@ -21,4 +21,4 @@ rule "aws_instance_previous_type" { rule "terraform_required_providers" { enabled = false -} \ No newline at end of file +} diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml index ea8591a..c451d29 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -9,7 +9,7 @@ # push: # tags: # - "*" - + # jobs: # create_changelog: # runs-on: ubuntu-latest diff --git a/.github/workflows/tf-static-checks-call.yml b/.github/workflows/tf-static-checks-call.yml index c95f579..2fc6f48 100644 --- a/.github/workflows/tf-static-checks-call.yml +++ b/.github/workflows/tf-static-checks-call.yml @@ -6,4 +6,4 @@ on: workflow_dispatch: jobs: tf-static-checks: - uses: clouddrove/test-tfsec/.github/workflows/tf-static-checks.yml@feature/tf-static-check \ No newline at end of file + uses: clouddrove/test-tfsec/.github/workflows/tf-static-checks.yml@feature/tf-static-check diff --git a/.github/workflows/tf-static-checks.yml b/.github/workflows/tf-static-checks.yml index f1c3843..ccaf56c 100644 --- a/.github/workflows/tf-static-checks.yml +++ b/.github/workflows/tf-static-checks.yml @@ -62,4 +62,4 @@ jobs: terraform_version: ${{ needs.versionExtract.outputs.maxVersion }} - name: Check Terraform format changes - run: terraform fmt --recursive -check=true \ No newline at end of file + run: terraform fmt --recursive -check=true diff --git a/.github/workflows/tflint.yaml b/.github/workflows/tflint.yaml index 7be2587..5524241 100644 --- a/.github/workflows/tflint.yaml +++ b/.github/workflows/tflint.yaml @@ -24,7 +24,7 @@ jobs: with: tflint_version: v0.44.1 github_token: ${{ secrets.GITHUB }} - + - uses: terraform-linters/tflint-load-config-action@v1 name: Setup TFLint with: @@ -42,10 +42,10 @@ jobs: - name: Run TFLint run: tflint --recursive --color --force -f compact - + # - uses: terraform-linters/setup-tflint@v3 # - uses: terraform-linters/tflint-load-config-action@v1 # with: # source-repo: clouddrove/test-tfsec/.github/config/.tflint.hcl@feature/tf-static-check # source-path: .github/config/.tflint.hcl - # - run: tflint -f compact \ No newline at end of file + # - run: tflint -f compact diff --git a/.github/workflows/tflint_call.yaml b/.github/workflows/tflint_call.yaml index 7865058..0b08b43 100644 --- a/.github/workflows/tflint_call.yaml +++ b/.github/workflows/tflint_call.yaml @@ -8,4 +8,4 @@ jobs: tf-lint: uses: clouddrove/test-tfsec/.github/workflows/tflint.yaml@feature/tf-static-check secrets: - GITHUB: ${{ secrets.GITHUB }} \ No newline at end of file + GITHUB: ${{ secrets.GITHUB }} diff --git a/.github/workflows/tfsec.yaml b/.github/workflows/tfsec.yaml index c1cfd82..983d40f 100644 --- a/.github/workflows/tfsec.yaml +++ b/.github/workflows/tfsec.yaml @@ -41,4 +41,4 @@ # tfsec_actions_working_dir: ./_example/ # tfsec_actions_comment: true # tfsec_output_format: sarif -# continue-on-error: true \ No newline at end of file +# continue-on-error: true diff --git a/.gitignore b/.gitignore index a1c4c48..8165665 100644 --- a/.gitignore +++ b/.gitignore @@ -206,4 +206,4 @@ terraform.tfstate *.tfstate *.tfstate.backup *.iml -*.terraform.lock.hcl \ No newline at end of file +*.terraform.lock.hcl diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cbd7b1f..be0b877 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,4 +18,4 @@ repos: - id: check-merge-conflict - id: debug-statements - id: check-yaml - - id: check-added-large-files \ No newline at end of file + - id: check-added-large-files diff --git a/.releaserc.json b/.releaserc.json index 15f87c2..548e644 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -7,4 +7,4 @@ "@semantic-release/release-notes-generator", "@semantic-release/github" ] -} \ No newline at end of file +} diff --git a/LICENSE b/LICENSE index e1adc61..bb8a949 100644 --- a/LICENSE +++ b/LICENSE @@ -198,4 +198,4 @@ Apache License distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file + limitations under the License. diff --git a/Makefile b/Makefile index 18e2f51..073c5aa 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,2 @@ export GENIE_PATH ?= $(shell 'pwd')/../../../genie -include $(GENIE_PATH)/Makefile \ No newline at end of file +include $(GENIE_PATH)/Makefile diff --git a/README.md b/README.md index 8a1273b..5017b66 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Terraform AZURE SUBNET -

+

Terraform module to create subnet resource on AZURE.

@@ -41,7 +41,7 @@ ## Prerequisites -This module has a few dependencies: +This module has a few dependencies: @@ -191,7 +191,7 @@ Here is an example of how you can use this module in your inventory structure: -## Feedback +## Feedback If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-azure-subnet/issues), or feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com). If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-azure-subnet)! diff --git a/README.yaml b/README.yaml index ae2a398..d5a4dbb 100644 --- a/README.yaml +++ b/README.yaml @@ -113,4 +113,4 @@ usage: |- } ] } - ``` \ No newline at end of file + ``` diff --git a/_example/complete/example.tf b/_example/complete/example.tf index a3f2de4..d95d28f 100644 --- a/_example/complete/example.tf +++ b/_example/complete/example.tf @@ -73,4 +73,4 @@ module "subnet_2" { next_hop_type = "Internet" } ] -} \ No newline at end of file +} diff --git a/_example/complete/output.tf b/_example/complete/output.tf index 978432e..b5d46c3 100644 --- a/_example/complete/output.tf +++ b/_example/complete/output.tf @@ -31,4 +31,4 @@ output "route_table_id" { output "route_table_associated_subnets" { description = "The collection of Subnets associated with this route table." value = module.subnet.*.route_table_associated_subnets[0] -} \ No newline at end of file +} diff --git a/_example/name-specific_subnet/example.tf b/_example/name-specific_subnet/example.tf index 13995cc..1c136f6 100644 --- a/_example/name-specific_subnet/example.tf +++ b/_example/name-specific_subnet/example.tf @@ -48,4 +48,4 @@ module "name_specific_subnet" { next_hop_type = "Internet" } ] -} \ No newline at end of file +} diff --git a/_example/name-specific_subnet/output.tf b/_example/name-specific_subnet/output.tf index 5986c76..f2b9937 100644 --- a/_example/name-specific_subnet/output.tf +++ b/_example/name-specific_subnet/output.tf @@ -32,4 +32,3 @@ output "route_table_associated_subnets" { description = "The collection of Subnets associated with this route table." value = module.name_specific_subnet.*.route_table_associated_subnets[0] } - diff --git a/_example/nat-gateway_subnet/example.tf b/_example/nat-gateway_subnet/example.tf index 08d610e..87b4df6 100644 --- a/_example/nat-gateway_subnet/example.tf +++ b/_example/nat-gateway_subnet/example.tf @@ -48,4 +48,4 @@ module "subnet" { next_hop_type = "Internet" } ] -} \ No newline at end of file +} diff --git a/_test/azure_subnet_test.go b/_test/azure_subnet_test.go index 91f1b29..a8e5cdd 100644 --- a/_test/azure_subnet_test.go +++ b/_test/azure_subnet_test.go @@ -31,4 +31,4 @@ func Test(t *testing.T) { assert.Equal(t, "test-clouddrove-subnet", Tags["Name"]) assert.Contains(t, Id, "/subscriptions") } -} \ No newline at end of file +} diff --git a/main.tf b/main.tf index 1fcd13a..281388f 100644 --- a/main.tf +++ b/main.tf @@ -131,4 +131,4 @@ resource "azurerm_subnet_route_table_association" "main2" { count = var.enable && var.enable_route_table && var.specific_name_subnet ? length(var.subnet_prefixes) : 0 subnet_id = element(azurerm_subnet.subnet2.*.id, count.index) route_table_id = join("", azurerm_route_table.rt.*.id) -} \ No newline at end of file +} diff --git a/output.tf b/output.tf index 28151f6..199649c 100644 --- a/output.tf +++ b/output.tf @@ -52,4 +52,4 @@ output "route_table_id" { output "route_table_associated_subnets" { description = "The collection of Subnets associated with this route table." value = var.enable_route_table ? azurerm_route_table.rt.*.subnets[0] : null -} \ No newline at end of file +} diff --git a/variable.tf b/variable.tf index 8cf9b3f..0b5daa5 100644 --- a/variable.tf +++ b/variable.tf @@ -175,4 +175,4 @@ variable "disable_bgp_route_propagation" { type = bool default = false description = "Boolean flag which controls propagation of routes learned by BGP on that route table." -} \ No newline at end of file +} diff --git a/version.tf b/version.tf index 51d04a8..55c5a8f 100644 --- a/version.tf +++ b/version.tf @@ -10,4 +10,4 @@ terraform { version = ">=2.90.0" } } -} \ No newline at end of file +}