Skip to content

Commit

Permalink
[TF-7737] Ensure TestsEnabled is present before validating
Browse files Browse the repository at this point in the history
  • Loading branch information
hashimoon committed Oct 4, 2023
1 parent cd7ff6c commit bfc640a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ func (o RegistryModuleCreateWithVCSConnectionOptions) valid() error {
return ErrRequiredVCSRepo
}

if o.TestConfig != nil {
if o.TestConfig != nil && o.TestConfig.TestsEnabled != nil {
if *o.TestConfig.TestsEnabled {
if !validString(o.VCSRepo.Branch) {
return ErrRequiredBranchWhenTestsEnabled
Expand Down

0 comments on commit bfc640a

Please sign in to comment.