Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_automation_software_update_configuration: set exists slice as nil when load SDK data to schema model #21995

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func (a *AzureQuery) LoadSDKTags(tags map[string][]string) {
if tags == nil {
return
}
a.Tags = nil
for k, vs := range tags {
t := Tag{}
t.Tag = k
Expand Down Expand Up @@ -181,12 +182,14 @@ func (s *Schedule) LoadSDKModel(info *softwareupdateconfiguration.SUCSchedulePro
if setting := info.AdvancedSchedule; setting != nil {
s.AdvancedWeekDays = pointer.ToSliceOfStrings(setting.WeekDays)
if setting.MonthDays != nil {
s.AdvancedMonthDays = nil
for _, v := range *(setting.MonthDays) {
s.AdvancedMonthDays = append(s.AdvancedMonthDays, int(v))
}
}

if setting.MonthlyOccurrences != nil {
s.MonthlyOccurrence = nil
for _, occ := range *setting.MonthlyOccurrences {

day := ""
Expand Down