@ -219,10 +219,8 @@ func (conf *Config) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
return err
return err
}
}
if len ( parsedConfig . QueueList ) == 0 {
// Empty queue list means user wants to delete the notification configuration.
return errors . New ( "missing queue configuration(s)" )
if len ( parsedConfig . QueueList ) > 0 {
}
for i , q1 := range parsedConfig . QueueList [ : len ( parsedConfig . QueueList ) - 1 ] {
for i , q1 := range parsedConfig . QueueList [ : len ( parsedConfig . QueueList ) - 1 ] {
for _ , q2 := range parsedConfig . QueueList [ i + 1 : ] {
for _ , q2 := range parsedConfig . QueueList [ i + 1 : ] {
if reflect . DeepEqual ( q1 , q2 ) {
if reflect . DeepEqual ( q1 , q2 ) {
@ -230,6 +228,7 @@ func (conf *Config) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
}
}
}
}
}
}
}
if len ( parsedConfig . LambdaList ) > 0 || len ( parsedConfig . TopicList ) > 0 {
if len ( parsedConfig . LambdaList ) > 0 || len ( parsedConfig . TopicList ) > 0 {
return & ErrUnsupportedConfiguration { }
return & ErrUnsupportedConfiguration { }
@ -278,10 +277,6 @@ func ParseConfig(reader io.Reader, region string, targetList *TargetList) (*Conf
return nil , err
return nil , err
}
}
if len ( config . QueueList ) == 0 {
return nil , errors . New ( "missing queue configuration(s)" )
}
if err := config . Validate ( region , targetList ) ; err != nil {
if err := config . Validate ( region , targetList ) ; err != nil {
return nil , err
return nil , err
}
}