Skip to content

Commit

Permalink
Fix regex for vmss_name
Browse files Browse the repository at this point in the history
  • Loading branch information
ieuanb74 committed Sep 5, 2024
1 parent 4ed3066 commit e10db04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ locals {
log_analytics_subscription = var.log_analytics_sub_id[local.log_analytics_workspace]

vm_name = var.virtual_machine_id != null ? regex("virtualMachines/([^/]+)", var.virtual_machine_id)[0] : null
vmss_name = var.virtual_machine_scale_set_id != null ? regex("virtualMachines/([^/]+)", var.virtual_machine_scale_set_id)[0] : null
vmss_name = var.virtual_machine_scale_set_id != null ? regex("virtualMachineScaleSets/([^/]+)", var.virtual_machine_scale_set_id)[0] : null

}

0 comments on commit e10db04

Please sign in to comment.