Skip to content

Commit

Permalink
Lint linit lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsapran committed Jul 3, 2019
1 parent 1498394 commit dcfca15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/resource_arm_virtual_machine_scale_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -1326,14 +1326,14 @@ func flattenAzureRmVirtualMachineScaleSetNetworkProfile(profile *compute.Virtual
config["primary"] = *properties.Primary
}

if publicIpInfo := properties.PublicIPAddressConfiguration ; publicIpInfo!= nil {
if publicIpInfo := properties.PublicIPAddressConfiguration; publicIpInfo != nil {
publicIpConfigs := make([]map[string]interface{}, 0, 1)
publicIpConfig := make(map[string]interface{})
if publicIpName := publicIpInfo.Name; publicIpName != nil {
publicIpConfig["name"] = *publicIpName
}
if publicIpProperties := publicIpInfo.VirtualMachineScaleSetPublicIPAddressConfigurationProperties; publicIpProperties != nil {
if dns := publicIpProperties.DNSSettings; dns !=nil {
if dns := publicIpProperties.DNSSettings; dns != nil {
publicIpConfig["domain_name_label"] = *dns.DomainNameLabel
}
if timeout := publicIpProperties.IdleTimeoutInMinutes; timeout != nil {
Expand Down

0 comments on commit dcfca15

Please sign in to comment.