Fix copied schema.Set values
schema.Set contains a sync structure which can't be copied.
This commit is contained in:
parent
bbae22007d
commit
cb2381b38c
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue