Open braunsonm opened 2 years ago
@braunsonm Please share the exact TF manifest to try at our end.
@trinaths
resource "bigip_command" "create_partition" {
commands = ["create auth partition ${var.partition_name} default-route-domain 0"]
when = "apply"
}
This is a temporary workaround:
resource "bigip_command" "create_partition" {
commands = ["create auth partition ${var.partition_name} default-route-domain 0"]
when = "apply"
lifecycle {
ignore_changes = [command_result]
}
}
Summary
When you create a
bigip_command
, it will succeed but whenever you runterraform apply
again it will always show+ command_result = (known after apply)
causing the command to be modified everytime.Steps To Reproduce
Steps to reproduce the behavior:
Expected Behavior
The resource should have no changes detected
Actual Behavior
The resource pollutes the terraform plan