You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some troubleshooting with some friends over at Tencent Cloud we came to the conclusion that the problem lies with the format of credentials file generated by tccli. If you use tccli auth login to get credentials via oauth the credentials file format looks like this (masked for obvious reasons):
I believe the plugin doesn't expect the credentials file to have this format and doesn't handle non-string values which causes it to crash. If I remove the file (or modify it only be strings and removing the oauth key) packer runs without crashing.
Overview of the Issue
Tencentcloud plugin on version 1.2.0 panic upon calling packer build:
Reproduction Steps
Note that that the plugin crashes immediately. Version 1.1.0 does not have this problem.
Plugin and Packer version
Packer v1.12.0
Tencentcloud v1.2.0
Simplified Packer Buildfile
Operating system and Environment details
Linux, x64
PopOS! (Ubuntu 22.04)
Kernel verison 6.9.3-76060903-generic
Log Fragments and crash.log files
Log and crash log available at https://gist.github.com/dstevensson/b7ccd5ee35d142c3e48756748a4e5e85
The text was updated successfully, but these errors were encountered: