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

Host macros tend to overwrite each other

Open vicioussn opened this issue 3 years ago • 3 comments

Hello!

Host macros want to over-write each other on each apply:

 ~ resource "zabbix_host" "qa_sipp" {
        id             = "10775"
        name           = "SIPP QA"
        # (6 unchanged attributes hidden)


      ~ macro {
          ~ name  = "{$APIM.ENVIRONMENT_SUFFIX}" -> "{$ENVIRONMENT}"
          ~ value = "test" -> "qa"
        }
      ~ macro {
          ~ name  = "{$ENVIRONMENT}" -> "{$APIM.ENVIRONMENT_SUFFIX}"
          ~ value = "qa" -> "test"
        }

        # (3 unchanged blocks hidden)
    }

vicioussn avatar Jan 13 '22 15:01 vicioussn

Hi, yup, thats a bug these were being stored as an ordered list, rather than a set

Should be resolved when i merge in https://github.com/tpretz/terraform-provider-zabbix/commit/ee01e3db0bdad264166e54b69984360c9abf92e6

which turns them into a set, but given that branch has a fair few library updates too, i want to get more of a test suite in place to detect other similar issues first

tpretz avatar Jan 13 '22 15:01 tpretz

i want to get more of a test suite in place to detect other similar issues first

Do you appreciate any help with this?

Ikke avatar Mar 22 '22 15:03 Ikke

Hello, We are also impacted with this bug. I will be glad to help you in order to have your fix merged in a release Thanks and have a nice day

ywh-jmorillo avatar May 29 '24 15:05 ywh-jmorillo