SUSE / ha-sap-terraform-deployments

Automated SAP/HA Deployments in Public/Private Clouds
GNU General Public License v3.0
123 stars 88 forks source link

azure: fix ANF variables in non-ANF case #776

Closed yeoldegrove closed 3 years ago

yeoldegrove commented 3 years ago

This fixes the following error message after the latest #733 merge in non-ANF use cases.

Error: Invalid index

  on infrastructure.tf line 42, in locals:
  42:   anf_account_name            = var.anf_account_name == "" ? azurerm_netapp_account.mynetapp-acc.0.name : var.anf_account_name
    |----------------
    | azurerm_netapp_account.mynetapp-acc is empty tuple