Skip to content

Commit

Permalink
remove force new from sku
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte committed Jan 13, 2020
1 parent 31d4012 commit ca23f08
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ func resourceArmDevSpaceController() *schema.Resource {
"resource_group_name": azure.SchemaResourceGroupName(),

"sku_name": {
Type: schema.TypeString,
Optional: true, // required in 2.0
Computed: true, // remove in 2.0
ForceNew: true,
Type: schema.TypeString,
Optional: true, // required in 2.0
Computed: true, // remove in 2.0
//ForceNew: true, // uncomment in 2.0 - this should be fine as there is only 1 valid value
ConflictsWith: []string{"sku"},
ValidateFunc: validation.StringInSlice([]string{
"S1",
}, false),
},

"sku": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Type: schema.TypeList,
Optional: true,
//ForceNew: true, // uncomment in 2.0 - this should be fine as there is only 1 valid value
Computed: true,
ConflictsWith: []string{"sku_name"},
Deprecated: "This property has been deprecated in favour of the 'sku_name' property and will be removed in version 2.0 of the provider",
Expand All @@ -71,15 +71,13 @@ func resourceArmDevSpaceController() *schema.Resource {
"name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{
"S1",
}, false),
},
"tier": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{
string(devspaces.Standard),
}, false),
Expand Down

0 comments on commit ca23f08

Please sign in to comment.