Skip to content

Commit

Permalink
fix test code output issue.
Browse files Browse the repository at this point in the history
change `cluster_identity` type from list to object so the user won't need use index anymore.
  • Loading branch information
lonegunmanb committed Jul 13, 2022
1 parent 5b0feb6 commit cd80be0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ output "http_application_routing_zone_name" {
}

output "cluster_identity" {
value = azurerm_kubernetes_cluster.main.identity
value = try(azurerm_kubernetes_cluster.main.identity[0], null)
}

output "kubelet_identity" {
Expand Down
2 changes: 1 addition & 1 deletion test/fixture/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ output "test_aks_without_monitor_id" {
}

output "test_aks_without_monitor_identity" {
value = module.aks_without_monitor.system_assigned_identity
value = module.aks_without_monitor.cluster_identity
}

output "test_admin_client_key" {
Expand Down

0 comments on commit cd80be0

Please sign in to comment.