Skip to content

Commit

Permalink
Fix "nil map" bug for AlluxioRuntime's Properties (fluid-cloudnative#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrafalgarZZZ authored Aug 29, 2020
1 parent 2cdc983 commit 81de403
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ddc/alluxio/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ func (e *AlluxioEngine) transformCommonPart(runtime *datav1alpha1.AlluxioRuntime

if len(runtime.Spec.Properties) > 0 {
value.Properties = runtime.Spec.Properties
} else {
value.Properties = map[string]string{}
}

dataReplicas := runtime.Spec.Data.Replicas
Expand Down

0 comments on commit 81de403

Please sign in to comment.