RavinderReddyF5 / terraform-provider-bigip-version0.12

Terraform resources that can configure F5 BIGIP products
Mozilla Public License 2.0
0 stars 0 forks source link

'content_type_exclude' of 'bigip_ltm_profile_httpcompress' fails #153

Open RavinderReddyF5 opened 4 years ago

RavinderReddyF5 commented 4 years ago

Issue by marianne-butaye Thursday Jun 27, 2019 at 14:42 GMT Originally opened as https://github.com/terraform-providers/terraform-provider-bigip/issues/122


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.

RavinderReddyF5 commented 4 years ago

Comment by mdditt2000 Tuesday Jul 02, 2019 at 22:47 GMT


Jira TER-21