@@ -74,10 +74,10 @@ func ResourceServer() *schema.Resource {
7474 DiffSuppressFunc : dsf .IgnoreCase ,
7575 },
7676 "protected" : {
77- Type : schema .TypeBool ,
78- Optional : true ,
79- Default : false ,
80- Description : "If true, the instance is protected against accidental deletion via the Scaleway API." ,
77+ Type : schema .TypeBool ,
78+ Optional : true ,
79+ Default : false ,
80+ Description : "If true, the instance is protected against accidental deletion via the Scaleway API." ,
8181 },
8282 "replace_on_type_change" : {
8383 Type : schema .TypeBool ,
@@ -390,7 +390,7 @@ func ResourceInstanceServerCreate(ctx context.Context, d *schema.ResourceData, m
390390 SecurityGroup : types .ExpandStringPtr (zonal .ExpandID (d .Get ("security_group_id" )).ID ),
391391 DynamicIPRequired : scw .BoolPtr (d .Get ("enable_dynamic_ip" ).(bool )),
392392 Tags : types .ExpandStrings (d .Get ("tags" )),
393- Protected : scw . BoolPtr ( d .Get ("protected" ).(bool ) ),
393+ Protected : d .Get ("protected" ).(bool ),
394394 }
395395
396396 enableIPv6 , ok := d .GetOk ("enable_ipv6" )
@@ -831,7 +831,7 @@ func ResourceInstanceServerUpdate(ctx context.Context, d *schema.ResourceData, m
831831 serverShouldUpdate = true
832832 updateRequest .DynamicIPRequired = scw .BoolPtr (d .Get ("enable_dynamic_ip" ).(bool ))
833833 }
834-
834+
835835 if d .HasChange ("protected" ) {
836836 serverShouldUpdate = true
837837 updateRequest .Protected = scw .BoolPtr (d .Get ("protected" ).(bool ))
0 commit comments