Skip to content

Commit cd80be0

Browse files
committed
fix test code output issue.
change `cluster_identity` type from list to object so the user won't need use index anymore.
1 parent 5b0feb6 commit cd80be0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ output "http_application_routing_zone_name" {
5555
}
5656

5757
output "cluster_identity" {
58-
value = azurerm_kubernetes_cluster.main.identity
58+
value = try(azurerm_kubernetes_cluster.main.identity[0], null)
5959
}
6060

6161
output "kubelet_identity" {

test/fixture/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ output "test_aks_without_monitor_id" {
77
}
88

99
output "test_aks_without_monitor_identity" {
10-
value = module.aks_without_monitor.system_assigned_identity
10+
value = module.aks_without_monitor.cluster_identity
1111
}
1212

1313
output "test_admin_client_key" {

0 commit comments

Comments
 (0)