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

'content_type_exclude' of 'bigip_ltm_profile_httpcompress' fails

Open marianne-butaye opened this issue 6 years ago • 1 comments

The new property 'content_type_exclude' of resource 'bigip_ltm_profile_httpcompress' cannot be added/updated.

Every time I try to add a value, the plan is correct:

data.null_data_source.httpcompress_profiles: Refreshing state...
data.vault_generic_secret.f5_key: Refreshing state...
bigip_ltm_profile_httpcompress.httpcompress_profiles: Refreshing state... (ID: /Common/sjhttpcompression2)

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  ~ bigip_ltm_profile_httpcompress.httpcompress_profiles
      content_type_exclude.#:          "0" => "1"
      content_type_exclude.1514436184: "" => "nicecontentexclude.com"


Plan: 0 to add, 1 to change, 0 to destroy.

The apply seems correct:

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

bigip_ltm_profile_httpcompress.httpcompress_profiles: Modifying... (ID: /Common/sjhttpcompression2)
  content_type_exclude.#:          "0" => "1"
  content_type_exclude.1514436184: "" => "nicecontentexclude.com"
bigip_ltm_profile_httpcompress.httpcompress_profiles: Modifications complete after 0s (ID: /Common/sjhttpcompression2)

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

But terraform show shows that parameter was not modified.

bigip_ltm_profile_httpcompress.httpcompress_profiles:
  id = /Common/sjhttpcompression2
  content_type_exclude.# = 0
  content_type_include.# = 1
  content_type_include.813983126 = nicecontent.com
  defaults_from = /Common/httpcompression
  name = /Common/sjhttpcompression2
  uri_exclude.# = 2
  uri_exclude.3859912627 = www.abc2.f5.com
  uri_exclude.4236700041 = www.abc.f5.com
  uri_include.# = 1
  uri_include.3682313543 = www.xyzbc.cisco.com

The apply command try to add it every time. It was not added on the F5 device.

marianne-butaye avatar Jun 27 '19 14:06 marianne-butaye

Jira TER-21

mdditt2000 avatar Jul 02 '19 22:07 mdditt2000

closing this issue as it is not seen latest versions

RavinderReddyF5 avatar Nov 09 '22 17:11 RavinderReddyF5