1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/changelogs/fragments
patchback[bot] 2c825f04e7
[PR #6296/bf780ea7 backport][stable-6] terraform: remote state file exists check issue (#6331)
terraform: remote state file exists check issue (#6296)

* remote state file exists check

In the official CLI implementation of Terraform, if the state file does not exist, a new one will be created, and there is no need to check that the state file already exists and with an error if file not exists.

```bash
# Test command
terraform apply -state test.tfstate. # if state file not exists ,terraform will create a new one
terraform destroy -state test1.tfstate  ### Terraform will not throw any error, the command will succeed execute, only report no resource has destroy
```

* Update terraform.py

add 1 blank line to function end

* Create 6296-LanceNero-Terraform_statefile_check

remove file exists check (https://github.com/ansible-collections/community.general/pull/6296)

* resolve if case issue

* Add blank line

* Update 6296-LanceNero-Terraform_statefile_check

* Update changelogs/fragments/6296-LanceNero-Terraform_statefile_check

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* update code style

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update suffix to correct CI issue

* Update Code Style

* Update bug-fix to feature release

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
(cherry picked from commit bf780ea738)

Co-authored-by: LanceNero <Lance.nero@gmail.com>
2023-04-13 07:43:49 +02:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:17:57 +02:00
6199-archive-generate-checksum-in-chunks.yml [PR #6274/14b19afc backport][stable-6] archive: Generate crc32 over 16MiB chunks (#6326) 2023-04-13 05:09:34 +00:00
6206-dconf-booleans.yml [PR #6206/a5765143 backport][stable-6] dconf: three minor but useful fixes (#6330) 2023-04-13 07:18:19 +02:00
6212-pipx-include-injected.yml [PR #6212/33093e9f backport][stable-6] pipx: document parameters supported with state=latest, and fix include_injected parameter (#6266) 2023-03-30 07:52:45 +02:00
6259-redhat_subscription-fix-force.yaml [PR #6259/c9e11e5c backport][stable-6] redhat_subscription: manually unregister only when registered (#6280) 2023-04-03 21:25:53 +02:00
6267-homebrew-cask-upgrade-all-greedy.yml [PR #6267/6c5c05df backport][stable-6] homebrew: respect greedy flag for cask upgrade_all (#6328) 2023-04-13 07:09:19 +02:00
6269-mksysb-output.yml [PR #6269/a64e3682 backport][stable-6] mksysb: improve visibility on the output (#6291) 2023-04-05 14:10:47 +02:00
6275-redhat_subscription-fix-environments-centos.yaml [PR #6275/c280b793 backport][stable-6] redhat_subscription: fix D-Bus option for environments on CentOS (#6282) 2023-04-03 22:02:12 +02:00
6277-add-topics-gitlab-project.yml [PR #6278/cee5f31b backport][stable-6] Add support to topics on Gitlab Project module (#6283) 2023-04-03 22:15:23 +02:00
6293-add-puppet-skip-tags-option.yaml [PR #6293/ea8720f5 backport][stable-6] Add skip_tags option to Puppet module (#6327) 2023-04-13 05:09:28 +00:00
6296-LanceNero-Terraform_statefile_check.yml [PR #6296/bf780ea7 backport][stable-6] terraform: remote state file exists check issue (#6331) 2023-04-13 07:43:49 +02:00
6308-pipx-add-system-site-packages.yml [PR #6308/f93a1bf5 backport][stable-6] pipx: Add support for system_site_packages (#6311) 2023-04-10 07:26:31 +00:00