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

Configuration profile computer group IDs ordering

Open w0de opened this issue 9 months ago • 2 comments

I believe configuration profiles' assign computer group IDs are sorted in the API response by group ID. This diff should be suppressed.

Eg:

  # jamfpro_macos_configuration_profile.munki_shard_1 will be updated in-place
  ~ resource "jamfpro_macos_configuration_profile" "munki_shard_1" {
        id                  = "165"
        name                = "Munki - Shard 1"
        # (4 unchanged attributes hidden)

      ~ scope {
          ~ computer_group_ids = [
              - 126,
                70,
              + 126,
            ]
            # (7 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # jamfpro_macos_configuration_profile.munki_shard_2 will be updated in-place
  ~ resource "jamfpro_macos_configuration_profile" "munki_shard_2" {
        id                  = "163"
        name                = "Munki - Shard 2"
        # (4 unchanged attributes hidden)

      ~ scope {
            # (8 unchanged attributes hidden)

          ~ exclusions {
              ~ computer_group_ids  = [
                  - 126,
                    68,
                    # (1 unchanged element hidden)
                    123,
                  + 126,
                ]
                # (7 unchanged attributes hidden)
            }
        }

        # (1 unchanged block hidden)
    }

  # jamfpro_macos_configuration_profile.munki_shard_3 will be updated in-place
  ~ resource "jamfpro_macos_configuration_profile" "munki_shard_3" {
        id                  = "164"
        name                = "Munki - Shard 3"
        # (4 unchanged attributes hidden)

      ~ scope {
            # (8 unchanged attributes hidden)

          ~ exclusions {
              ~ computer_group_ids  = [
                  - 126,
                    68,
                    # (1 unchanged element hidden)
                    123,
                  + 126,
                ]
                # (7 unchanged attributes hidden)
            }
        }

        # (1 unchanged block hidden)
    }

  # jamfpro_macos_configuration_profile.munki_shard_4 will be updated in-place
  ~ resource "jamfpro_macos_configuration_profile" "munki_shard_4" {
        id                  = "167"
        name                = "Munki - Shard 4"
        # (4 unchanged attributes hidden)

      ~ scope {
            # (8 unchanged attributes hidden)

          ~ exclusions {
              ~ computer_group_ids  = [
                  - 126,
                    68,
                    # (1 unchanged element hidden)
                    123,
                  + 126,
                ]
                # (7 unchanged attributes hidden)
            }
        }

        # (1 unchanged block hidden)
    }

  # jamfpro_macos_configuration_profile.munki_shard_5 will be updated in-place
  ~ resource "jamfpro_macos_configuration_profile" "munki_shard_5" {
        id                  = "166"
        name                = "Munki - Shard 5"
        # (4 unchanged attributes hidden)

      ~ scope {
            # (8 unchanged attributes hidden)

          ~ exclusions {
              ~ computer_group_ids  = [
                  - 126,
                    68,
                    # (1 unchanged element hidden)
                    123,
                  + 126,
                ]
                # (7 unchanged attributes hidden)
            }
        }

        # (1 unchanged block hidden)
    }

w0de avatar May 24 '24 02:05 w0de