Merge pull request #11974 from hashicorp/jbardin/azurerm-vet

Fix copied schema.Set values
This commit is contained in:
James Bardin 2017-02-15 16:41:28 -05:00 committed by GitHub
commit 7c83819e78
1 changed files with 7 additions and 7 deletions

View File

@ -328,8 +328,8 @@ func resourceArmContainerServiceDelete(d *schema.ResourceData, meta interface{})
}
func flattenAzureRmContainerServiceMasterProfile(profile containerservice.MasterProfile) schema.Set {
masterProfiles := schema.Set{
func flattenAzureRmContainerServiceMasterProfile(profile containerservice.MasterProfile) *schema.Set {
masterProfiles := &schema.Set{
F: resourceAzureRMContainerServiceMasterProfileHash,
}
@ -343,14 +343,14 @@ func flattenAzureRmContainerServiceMasterProfile(profile containerservice.Master
return masterProfiles
}
func flattenAzureRmContainerServiceLinuxProfile(profile containerservice.LinuxProfile) schema.Set {
profiles := schema.Set{
func flattenAzureRmContainerServiceLinuxProfile(profile containerservice.LinuxProfile) *schema.Set {
profiles := &schema.Set{
F: resourceAzureRMContainerServiceLinuxProfilesHash,
}
values := map[string]interface{}{}
sshKeys := schema.Set{
sshKeys := &schema.Set{
F: resourceAzureRMContainerServiceLinuxProfilesSSHKeysHash,
}
for _, ssh := range *profile.SSH.PublicKeys {
@ -366,8 +366,8 @@ func flattenAzureRmContainerServiceLinuxProfile(profile containerservice.LinuxPr
return profiles
}
func flattenAzureRmContainerServiceAgentPoolProfiles(profiles *[]containerservice.AgentPoolProfile) schema.Set {
agentPoolProfiles := schema.Set{
func flattenAzureRmContainerServiceAgentPoolProfiles(profiles *[]containerservice.AgentPoolProfile) *schema.Set {
agentPoolProfiles := &schema.Set{
F: resourceAzureRMContainerServiceAgentPoolProfilesHash,
}