avoid nil
This commit is contained in:
@@ -551,6 +551,7 @@ func (vl *VolumeLayout) ToInfo() (info VolumeLayoutInfo) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (vl *VolumeLayout) ToGrowOption() (option *VolumeGrowOption) {
|
func (vl *VolumeLayout) ToGrowOption() (option *VolumeGrowOption) {
|
||||||
|
option = &VolumeGrowOption{}
|
||||||
option.ReplicaPlacement = vl.rp
|
option.ReplicaPlacement = vl.rp
|
||||||
option.Ttl = vl.ttl
|
option.Ttl = vl.ttl
|
||||||
option.DiskType = vl.diskType
|
option.DiskType = vl.diskType
|
||||||
|
|||||||
Reference in New Issue
Block a user