Merge pull request #529 from cloudskiff/fix/sqs_queue_migration_policy
fix policy not deleted when emptymain
commit
41f37f70a7
|
@ -62,6 +62,7 @@ func (m AwsSqsQueuePolicyExpander) Execute(remoteResources, resourcesFromState *
|
|||
func (m *AwsSqsQueuePolicyExpander) handlePolicy(queue *resource.AbstractResource, results *[]resource.Resource) error {
|
||||
policy, exists := queue.Attrs.Get("policy")
|
||||
if !exists || policy.(string) == "" {
|
||||
queue.Attrs.SafeDelete([]string{"policy"})
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue