@@ -158,14 +158,14 @@ func (r *shareDataSource) Schema(_ context.Context, _ datasource.SchemaRequest,
158158 },
159159 "export_policy" : schema.StringAttribute {
160160 Description : `Name of the Share Export Policy to use in the Share.
161- Note that if this is not set, the Share can only be mounted in read only by
162- clients with IPs matching the IP ACL of the Resource Pool hosting this Share.
161+ Note that if this is not set, the Share can only be mounted in read only by
162+ clients with IPs matching the IP ACL of the Resource Pool hosting this Share.
163163You can also assign a Share Export Policy after creating the Share` ,
164164 Computed : true ,
165165 },
166166 "space_hard_limit_gigabytes" : schema.Int64Attribute {
167167 Computed : true ,
168- Description : `Space hard limit for the Share.
168+ Description : `Space hard limit for the Share.
169169 If zero, the Share will have access to the full space of the Resource Pool it lives in.
170170 (unit: gigabytes)` ,
171171 },
@@ -207,8 +207,10 @@ func mapDataSourceFields(_ context.Context, region string, share *sfs.GetShareRe
207207 utils .Coalesce (model .ShareId , types .StringPointerValue (share .Id )).ValueString (),
208208 )
209209 model .Name = types .StringPointerValue (share .Name )
210- if policy := share .ExportPolicy .Get (); policy != nil {
211- model .ExportPolicyName = types .StringPointerValue (policy .Name )
210+ if share .ExportPolicy != nil {
211+ if policy := share .ExportPolicy .Get (); policy != nil {
212+ model .ExportPolicyName = types .StringPointerValue (policy .Name )
213+ }
212214 }
213215
214216 model .SpaceHardLimitGigabytes = types .Int64PointerValue (share .SpaceHardLimitGigabytes )
0 commit comments