Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte committed Sep 20, 2018
1 parent 99cf615 commit 6d31d87
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions azurestack/resource_arm_virtual_machine_scale_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ func resourceArmVirtualMachineScaleSetRead(d *schema.ResourceData, meta interfac
return fmt.Errorf("[DEBUG] Error setting `os_profile_linux_config`: %#v", err)
}


if secrets := osProfile.Secrets; secrets != nil {
flattenedSecrets := flattenAzureRmVirtualMachineScaleSetOsProfileSecrets(secrets)
if err := d.Set("os_profile_secrets", flattenedSecrets); err != nil {
Expand Down Expand Up @@ -1213,7 +1212,6 @@ func resourceArmVirtualMachineScaleSetNetworkConfigurationHash(v interface{}) in
return hashcode.String(buf.String())
}


func resourceArmVirtualMachineScaleSetOsProfileWindowsConfigHash(v interface{}) int {
var buf bytes.Buffer

Expand Down Expand Up @@ -1481,13 +1479,13 @@ func expandAzureRmVirtualMachineScaleSetStorageProfileImageReference(d *schema.R
return &imageReference, nil
}

func expandAzureRmVirtualMachineScaleSetOsProfileLinuxConfig(d *schema.ResourceData) (*compute.LinuxConfiguration) {
func expandAzureRmVirtualMachineScaleSetOsProfileLinuxConfig(d *schema.ResourceData) *compute.LinuxConfiguration {
osProfilesLinuxConfig := d.Get("os_profile_linux_config").([]interface{})

if len(osProfilesLinuxConfig) == 0 || osProfilesLinuxConfig[0] == nil {
return nil
}

linuxConfig := osProfilesLinuxConfig[0].(map[string]interface{})
disablePasswordAuth := linuxConfig["disable_password_authentication"].(bool)

Expand Down

0 comments on commit 6d31d87

Please sign in to comment.