Skip to content

Commit bfc640a

Browse files
committed
[TF-7737] Ensure TestsEnabled is present before validating
1 parent cd7ff6c commit bfc640a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

registry_module.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ func (o RegistryModuleCreateWithVCSConnectionOptions) valid() error {
726726
return ErrRequiredVCSRepo
727727
}
728728

729-
if o.TestConfig != nil {
729+
if o.TestConfig != nil && o.TestConfig.TestsEnabled != nil {
730730
if *o.TestConfig.TestsEnabled {
731731
if !validString(o.VCSRepo.Branch) {
732732
return ErrRequiredBranchWhenTestsEnabled

0 commit comments

Comments
 (0)