hashicorp / packer-plugin-tencentcloud

Packer plugin for Tencent Cloud Image Builder
https://www.packer.io/docs/builders/tencentcloud-cvm
Mozilla Public License 2.0
8 stars 12 forks source link

ForceStop option is ignored and is always true #115

Closed shinny-taojiachun closed 11 months ago

shinny-taojiachun commented 11 months ago

When filing a bug, please include the following headings if possible. Any example text in this template can be deleted.

Overview of the Issue

Currently, the API call for create image will always have ForceStop set to true. This behavior will lead to some file modified during provisioning get lost in final image because modification has not been synced to disk in time.

Reproduction Steps

Doing only echo 'root:testpwd' | chpasswd and you should find password incorrect for root when start a new cvm.

Plugin and Packer version

Simplified Packer Buildfile

Operating system and Environment details

Ubuntu, Github Action

Log Fragments and crash.log files