terraform-provider-aviatrix icon indicating copy to clipboard operation
terraform-provider-aviatrix copied to clipboard

A tab character in the description attribute of resource "aviatrix_firewall_policy" causes apply to fail with a Error.

Open sysop255 opened this issue 2 years ago • 0 comments

Describe the problem

A tab character in the description attribute of resource "aviatrix_firewall_policy" causes apply to fail with a Error.

To Reproduce

create a aviatrix_firewall_policy with a description that contains a tab character

Expected behavior terraform plan should fail and identify the cause.

Additional data / screenshots Sample error;

"Terraform Execute": Error: rest API append_stateful_firewall_rules Post failed: Expected a JSON dictionary list string for policies "Terraform Execute": "Terraform Execute": on example.tf line 76, in resource "aviatrix_firewall_policy" "example_7": "Terraform Execute": 76: resource "aviatrix_firewall_policy" "example_7" {

If applicable, add screenshots to help explain your problem.

Environment:

terraform {
  required_version = "0.13.6"
    required_providers {
    
     aviatrix = {
      source  = "aviatrixsystems/aviatrix"
      version = ">= 2.19.5"
    }

Current Version UserConnect-6.7.1186 UserConnect-6.7.1185 Kernel Version 5.4.0-1028-gcp

Additional context apply failed with confusing error.

sysop255 avatar Aug 02 '22 15:08 sysop255