Fix copied schema.Set values

schema.Set contains a sync structure which can't be copied.
This commit is contained in:
James Bardin 2017-02-15 15:03:40 -05:00
parent bbae22007d
commit cb2381b38c
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 { func flattenAzureRmContainerServiceMasterProfile(profile containerservice.MasterProfile) *schema.Set {
masterProfiles := schema.Set{ masterProfiles := &schema.Set{
F: resourceAzureRMContainerServiceMasterProfileHash, F: resourceAzureRMContainerServiceMasterProfileHash,
} }
@ -343,14 +343,14 @@ func flattenAzureRmContainerServiceMasterProfile(profile containerservice.Master
return masterProfiles return masterProfiles
} }
func flattenAzureRmContainerServiceLinuxProfile(profile containerservice.LinuxProfile) schema.Set { func flattenAzureRmContainerServiceLinuxProfile(profile containerservice.LinuxProfile) *schema.Set {
profiles := schema.Set{ profiles := &schema.Set{
F: resourceAzureRMContainerServiceLinuxProfilesHash, F: resourceAzureRMContainerServiceLinuxProfilesHash,
} }
values := map[string]interface{}{} values := map[string]interface{}{}
sshKeys := schema.Set{ sshKeys := &schema.Set{
F: resourceAzureRMContainerServiceLinuxProfilesSSHKeysHash, F: resourceAzureRMContainerServiceLinuxProfilesSSHKeysHash,
} }
for _, ssh := range *profile.SSH.PublicKeys { for _, ssh := range *profile.SSH.PublicKeys {
@ -366,8 +366,8 @@ func flattenAzureRmContainerServiceLinuxProfile(profile containerservice.LinuxPr
return profiles return profiles
} }
func flattenAzureRmContainerServiceAgentPoolProfiles(profiles *[]containerservice.AgentPoolProfile) schema.Set { func flattenAzureRmContainerServiceAgentPoolProfiles(profiles *[]containerservice.AgentPoolProfile) *schema.Set {
agentPoolProfiles := schema.Set{ agentPoolProfiles := &schema.Set{
F: resourceAzureRMContainerServiceAgentPoolProfilesHash, F: resourceAzureRMContainerServiceAgentPoolProfilesHash,
} }