Fix nil pointer in resource_aws_codebuild_project (#11740)
This commit is contained in:
parent
244992c1be
commit
e3e24f4592
|
@ -588,7 +588,7 @@ func sourceAuthToMap(sourceAuth *codebuild.SourceAuth) map[string]interface{} {
|
|||
auth := map[string]interface{}{}
|
||||
auth["type"] = *sourceAuth.Type
|
||||
|
||||
if sourceAuth.Type != nil {
|
||||
if sourceAuth.Resource != nil {
|
||||
auth["resource"] = *sourceAuth.Resource
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue