driftctl/pkg/resource/github/github_repository_ext.go

18 lines
390 B
Go
Raw Normal View History

2021-02-15 13:24:20 +00:00
package github
import "github.com/cloudskiff/driftctl/pkg/resource"
func (r *GithubRepository) NormalizeForState() (resource.Resource, error) {
if r.Topics != nil && len(*r.Topics) == 0 {
r.Topics = nil
}
return r, nil
}
func (r *GithubRepository) NormalizeForProvider() (resource.Resource, error) {
if r.Topics != nil && len(*r.Topics) == 0 {
r.Topics = nil
}
return r, nil
}