Terraform with Azure - 资源操作符号未在日志中正确显示
Terraform with Azure - Resource actions symbols dont display correctly in the logs
通过 Azure 部署 Terraform 任务时,生成的日志无法正确显示资源符号。
2020-03-16T22:19:21.4807821Z An execution plan has been generated and is shown below.
2020-03-16T22:19:21.4808173Z Resource actions are indicated with the following symbols:
2020-03-16T22:19:21.4808433Z [32m+[0m create
2020-03-16T22:19:21.4808648Z [33m~[0m update in-place
2020-03-16T22:19:21.4808823Z [0m
2020-03-16T22:19:21.4809040Z Terraform will perform the following actions:
想知道是否可以得到正确的符号而不是 32m+ 等等
您看到的是 ANSI 代码,将 Git Bash 终端设置为支持 xterm-256color
是查看这些(通常不可见的)代码的一种方式。
要修复这些奇怪的字符,只需在您的计划中使用 -no-color 选项并应用步骤!
作为参考,那些奇怪的值代表终端的颜色 - 请参阅:https://github.com/shiena/ansicolor/blob/master/README.md
无颜色选项:https://www.terraform.io/docs/commands/plan.html#no-color
通过 Azure 部署 Terraform 任务时,生成的日志无法正确显示资源符号。
2020-03-16T22:19:21.4807821Z An execution plan has been generated and is shown below.
2020-03-16T22:19:21.4808173Z Resource actions are indicated with the following symbols:
2020-03-16T22:19:21.4808433Z [32m+[0m create
2020-03-16T22:19:21.4808648Z [33m~[0m update in-place
2020-03-16T22:19:21.4808823Z [0m
2020-03-16T22:19:21.4809040Z Terraform will perform the following actions:
想知道是否可以得到正确的符号而不是 32m+ 等等
您看到的是 ANSI 代码,将 Git Bash 终端设置为支持 xterm-256color
是查看这些(通常不可见的)代码的一种方式。
要修复这些奇怪的字符,只需在您的计划中使用 -no-color 选项并应用步骤!
作为参考,那些奇怪的值代表终端的颜色 - 请参阅:https://github.com/shiena/ansicolor/blob/master/README.md
无颜色选项:https://www.terraform.io/docs/commands/plan.html#no-color