Skip to content

Commit

Permalink
dependencies: switching to Go 1.11 (#2229)
Browse files Browse the repository at this point in the history
* Upgrading travis to go1.11

* Code changes required for Go 1.11
  • Loading branch information
tombuildsstuff authored Nov 4, 2018
1 parent 82a0f9a commit c05c4c6
Show file tree
Hide file tree
Showing 27 changed files with 149 additions and 149 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
- docker
language: go
go:
- "1.10.x"
- "1.11.x"

install:
# This script is used by the Travis build to install a cookie for
Expand Down
2 changes: 1 addition & 1 deletion azurerm/data_source_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ func flattenKubernetesClusterDataSourceAddonProfiles(profile map[string]*contain
}

output := map[string]interface{}{
"enabled": enabled,
"enabled": enabled,
"http_application_routing_zone_name": zoneName,
}
routes = append(routes, output)
Expand Down
200 changes: 100 additions & 100 deletions azurerm/provider.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion azurerm/resource_arm_api_management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestAccAzureRMApiManagement_complete(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"certificate", // not returned from API, sensitive
"certificate", // not returned from API, sensitive
"hostname_configuration.0.portal.0.certificate", // not returned from API, sensitive
"hostname_configuration.0.portal.0.certificate_password", // not returned from API, sensitive
"hostname_configuration.0.proxy.0.certificate", // not returned from API, sensitive
Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_app_service_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ func resourceArmAppServicePlanCreateUpdate(d *schema.ResourceData, meta interfac
appServicePlan := web.AppServicePlan{
Location: &location,
AppServicePlanProperties: properties,
Kind: &kind,
Tags: expandTags(tags),
Sku: &sku,
Kind: &kind,
Tags: expandTags(tags),
Sku: &sku,
}

future, err := client.CreateOrUpdate(ctx, resGroup, name, appServicePlan)
Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_application_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -747,9 +747,9 @@ func resourceArmApplicationGatewayCreateUpdate(d *schema.ResourceData, meta inte
}

gateway := network.ApplicationGateway{
Name: utils.String(name),
Location: utils.String(location),
Tags: expandTags(tags),
Name: utils.String(name),
Location: utils.String(location),
Tags: expandTags(tags),
ApplicationGatewayPropertiesFormat: &properties,
}

Expand Down
8 changes: 4 additions & 4 deletions azurerm/resource_arm_application_insights.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ func resourceArmApplicationInsightsCreateOrUpdate(d *schema.ResourceData, meta i
}

insightProperties := insights.ApplicationInsightsComponent{
Name: &name,
Location: &location,
Kind: &applicationType,
Name: &name,
Location: &location,
Kind: &applicationType,
ApplicationInsightsComponentProperties: &applicationInsightsComponentProperties,
Tags: expandTags(tags),
Tags: expandTags(tags),
}

resp, err := client.CreateOrUpdate(ctx, resGroup, name, insightProperties)
Expand Down
8 changes: 4 additions & 4 deletions azurerm/resource_arm_key_vault_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,10 @@ func expandKeyVaultCertificatePolicy(d *schema.ResourceData) keyvault.Certificat
}

policy.X509CertificateProperties = &keyvault.X509CertificateProperties{
ValidityInMonths: utils.Int32(int32(cert["validity_in_months"].(int))),
Subject: utils.String(cert["subject"].(string)),
KeyUsage: &keyUsage,
Ekus: extendedKeyUsage,
ValidityInMonths: utils.Int32(int32(cert["validity_in_months"].(int))),
Subject: utils.String(cert["subject"].(string)),
KeyUsage: &keyUsage,
Ekus: extendedKeyUsage,
SubjectAlternativeNames: subjectAlternativeNames,
}
}
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ func flattenAzureRmKubernetesClusterAddonProfiles(profile map[string]*containers
}

output := map[string]interface{}{
"enabled": enabled,
"enabled": enabled,
"http_application_routing_zone_name": zoneName,
}
routes = append(routes, output)
Expand Down
12 changes: 6 additions & 6 deletions azurerm/resource_arm_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ func resourceArmLoadBalancerCreate(d *schema.ResourceData, meta interface{}) err
}

loadBalancer := network.LoadBalancer{
Name: utils.String(name),
Location: utils.String(location),
Tags: expandedTags,
Sku: &sku,
Name: utils.String(name),
Location: utils.String(location),
Tags: expandedTags,
Sku: &sku,
LoadBalancerPropertiesFormat: &properties,
}

Expand Down Expand Up @@ -309,9 +309,9 @@ func expandAzureRmLoadBalancerFrontendIpConfigurations(d *schema.ResourceData) *
name := data["name"].(string)
zones := expandZones(data["zones"].([]interface{}))
frontEndConfig := network.FrontendIPConfiguration{
Name: &name,
Name: &name,
FrontendIPConfigurationPropertiesFormat: &properties,
Zones: zones,
Zones: zones,
}

frontEndConfigs = append(frontEndConfigs, frontEndConfig)
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_loadbalancer_nat_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func expandAzureRmLoadBalancerNatPool(d *schema.ResourceData, lb *network.LoadBa
}

return &network.InboundNatPool{
Name: utils.String(d.Get("name").(string)),
Name: utils.String(d.Get("name").(string)),
InboundNatPoolPropertiesFormat: &properties,
}, nil
}
2 changes: 1 addition & 1 deletion azurerm/resource_arm_loadbalancer_nat_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func expandAzureRmLoadBalancerNatRule(d *schema.ResourceData, lb *network.LoadBa
}

natRule := network.InboundNatRule{
Name: utils.String(d.Get("name").(string)),
Name: utils.String(d.Get("name").(string)),
InboundNatRulePropertiesFormat: &properties,
}

Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_loadbalancer_probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func expandAzureRmLoadBalancerProbe(d *schema.ResourceData) *network.Probe {
}

return &network.Probe{
Name: utils.String(d.Get("name").(string)),
Name: utils.String(d.Get("name").(string)),
ProbePropertiesFormat: &properties,
}
}
2 changes: 1 addition & 1 deletion azurerm/resource_arm_loadbalancer_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func expandAzureRmLoadBalancerRule(d *schema.ResourceData, lb *network.LoadBalan
}

return &network.LoadBalancingRule{
Name: utils.String(d.Get("name").(string)),
Name: utils.String(d.Get("name").(string)),
LoadBalancingRulePropertiesFormat: &properties,
}, nil
}
Expand Down
4 changes: 2 additions & 2 deletions azurerm/resource_arm_network_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func resourceArmNetworkInterfaceCreateUpdate(d *schema.ResourceData, meta interf
Name: &name,
Location: &location,
InterfacePropertiesFormat: &properties,
Tags: expandTags(tags),
Tags: expandTags(tags),
}

future, err := client.CreateOrUpdate(ctx, resGroup, name, iface)
Expand Down Expand Up @@ -664,7 +664,7 @@ func expandAzureRmNetworkInterfaceIpConfigurations(d *schema.ResourceData) ([]ne

name := data["name"].(string)
ipConfig := network.InterfaceIPConfiguration{
Name: &name,
Name: &name,
InterfaceIPConfigurationPropertiesFormat: &properties,
}

Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_network_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func expandAzureRmSecurityRules(d *schema.ResourceData) ([]network.SecurityRule,
}

rules = append(rules, network.SecurityRule{
Name: &name,
Name: &name,
SecurityRulePropertiesFormat: &properties,
})
}
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_route_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func resourceArmRouteTableCreateUpdate(d *schema.ResourceData, meta interface{})
Name: &name,
Location: &location,
RouteTablePropertiesFormat: &network.RouteTablePropertiesFormat{
Routes: expandRouteTableRoutes(d),
Routes: expandRouteTableRoutes(d),
DisableBgpRoutePropagation: utils.Bool(d.Get("disable_bgp_route_propagation").(bool)),
},
Tags: expandTags(tags),
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_sql_database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func TestAccAzureRMSqlDatabase_restorePointInTime(t *testing.T) {
CheckDestroy: testCheckAzureRMSqlDatabaseDestroy,
Steps: []resource.TestStep{
{
Config: preConfig,
Config: preConfig,
PreventPostDestroyRefresh: true,
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMSqlDatabaseExists(resourceName),
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_sql_elasticpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func resourceArmSqlElasticPoolCreate(d *schema.ResourceData, meta interface{}) e
Name: &name,
Location: &location,
ElasticPoolProperties: getArmSqlElasticPoolProperties(d),
Tags: expandTags(tags),
Tags: expandTags(tags),
}

future, err := client.CreateOrUpdate(ctx, resGroup, serverName, name, elasticPool)
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_storage_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ func expandStorageAccountVirtualNetworks(networkRule map[string]interface{}) *[]
attrs := virtualNetworkConfig.(string)
virtualNetwork := storage.VirtualNetworkRule{
VirtualNetworkResourceID: utils.String(attrs),
Action: storage.Allow,
Action: storage.Allow,
}
virtualNetworks[i] = virtualNetwork
}
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_storage_blob_migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestAccAzureRMStorageBlobMigrateState(t *testing.T) {
StateVersion: 0,
ID: "some_id",
InputAttributes: map[string]string{
"name": "blob.vhd",
"name": "blob.vhd",
"storage_container_name": "container",
"storage_account_name": "example",
},
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func resourceArmSubnetCreate(d *schema.ResourceData, meta interface{}) error {
properties.ServiceEndpoints = &serviceEndpoints

subnet := network.Subnet{
Name: &name,
Name: &name,
SubnetPropertiesFormat: &properties,
}

Expand Down
4 changes: 2 additions & 2 deletions azurerm/resource_arm_virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,8 @@ func resourceArmVirtualMachineCreate(d *schema.ResourceData, meta interface{}) e
Name: &name,
Location: &location,
VirtualMachineProperties: &properties,
Tags: expandedTags,
Zones: zones,
Tags: expandedTags,
Zones: zones,
}

if _, ok := d.GetOk("identity"); ok {
Expand Down
10 changes: 5 additions & 5 deletions azurerm/resource_arm_virtual_machine_scale_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -827,12 +827,12 @@ func resourceArmVirtualMachineScaleSetCreate(d *schema.ResourceData, meta interf
}

properties := compute.VirtualMachineScaleSet{
Name: &name,
Location: &location,
Tags: expandTags(tags),
Sku: sku,
Name: &name,
Location: &location,
Tags: expandTags(tags),
Sku: sku,
VirtualMachineScaleSetProperties: &scaleSetProps,
Zones: zones,
Zones: zones,
}

if _, ok := d.GetOk("identity"); ok {
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_virtual_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func resourceArmVirtualNetworkCreate(d *schema.ResourceData, meta interface{}) e
Name: &name,
Location: &location,
VirtualNetworkPropertiesFormat: vnetProperties,
Tags: expandTags(tags),
Tags: expandTags(tags),
}

networkSecurityGroupNames := make([]string, 0)
Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_virtual_network_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ func resourceArmVirtualNetworkGatewayCreateUpdate(d *schema.ResourceData, meta i
}

gateway := network.VirtualNetworkGateway{
Name: &name,
Location: &location,
Tags: expandTags(tags),
Name: &name,
Location: &location,
Tags: expandTags(tags),
VirtualNetworkGatewayPropertiesFormat: properties,
}

Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_virtual_network_peering.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func resourceArmVirtualNetworkPeeringCreate(d *schema.ResourceData, meta interfa
resGroup := d.Get("resource_group_name").(string)

peer := network.VirtualNetworkPeering{
Name: &name,
Name: &name,
VirtualNetworkPeeringPropertiesFormat: getVirtualNetworkPeeringProperties(d),
}

Expand Down

0 comments on commit c05c4c6

Please sign in to comment.