@@ -180,8 +180,7 @@ func (r *OrganizationVariableResource) Create(ctx context.Context, req resource.
180
180
181
181
tflog .Info (ctx , "Body Response" , map [string ]any {"bodyResponse" : string (bodyResponse )})
182
182
183
- b := * organizationVariable .Sensitive
184
- if b == true {
183
+ if * organizationVariable .Sensitive {
185
184
tflog .Info (ctx , "Variable value is not included in response, setting values the same as the plan for sensitive=true..." )
186
185
plan .Value = types .StringValue (plan .Value .ValueString ())
187
186
} else {
@@ -239,8 +238,7 @@ func (r *OrganizationVariableResource) Read(ctx context.Context, req resource.Re
239
238
240
239
tflog .Info (ctx , "Body Response" , map [string ]any {"bodyResponse" : string (bodyResponse )})
241
240
242
- b := * organizationVariable .Sensitive
243
- if b == true {
241
+ if * organizationVariable .Sensitive {
244
242
tflog .Info (ctx , "Variable value is not included in response, setting values the same as the current state value" )
245
243
state .Value = types .StringValue (state .Value .ValueString ())
246
244
} else {
@@ -346,8 +344,8 @@ func (r *OrganizationVariableResource) Update(ctx context.Context, req resource.
346
344
347
345
plan .ID = types .StringValue (state .ID .ValueString ())
348
346
plan .Key = types .StringValue (organizationVariable .Key )
349
- b := * organizationVariable . Sensitive
350
- if b == true {
347
+
348
+ if * organizationVariable . Sensitive {
351
349
tflog .Info (ctx , "Variable value is not included in response, setting values the same as the plan for sensitive=true..." )
352
350
plan .Value = types .StringValue (plan .Value .ValueString ())
353
351
} else {
0 commit comments