Skip to content

Commit

Permalink
Merge pull request #4852 from NilsBusche/bugfix/4721
Browse files Browse the repository at this point in the history
resource_arm_network_interface.go: Fixes #4721
  • Loading branch information
tombuildsstuff authored Nov 17, 2019
2 parents 3fb32ca + 32d538e commit a6139e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/resource_arm_network_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ func flattenNetworkInterfaceIPConfigurations(ipConfigs *[]network.InterfaceIPCon

niIPConfig["private_ip_address_allocation"] = strings.ToLower(string(props.PrivateIPAllocationMethod))

if props.PrivateIPAllocationMethod == network.Static {
if props.PrivateIPAddress != nil {
niIPConfig["private_ip_address"] = *props.PrivateIPAddress
}

Expand Down

0 comments on commit a6139e2

Please sign in to comment.