Skip to content

Commit c1e69ca

Browse files
committed
Set proper default value when local.data.dir is not specified
1 parent 5573752 commit c1e69ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/cdapmaster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func ApplyDefaults(resource interface{}) {
130130

131131
// Set the default local data directory if it is not set in cdap-cr.
132132
if _, ok := spec.Config[confLocalDataDirKey]; !ok {
133-
spec.Config[confLocalDataDirKey] = spec.Config[confLocalDataDirVal]
133+
spec.Config[confLocalDataDirKey] = confLocalDataDirVal
134134
}
135135

136136
// Disable explore

0 commit comments

Comments
 (0)