Skip to content

Commit

Permalink
azurerm_iothub_dps - updating default allocation_weight (#14943)
Browse files Browse the repository at this point in the history
* update default of allocation_weight to match azure default

* add 3.0 docs todo comment
  • Loading branch information
catriona-m authored Jan 13, 2022
1 parent 6d0c4e1 commit cd7da5a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions internal/services/iothub/iothub_dps_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,16 @@ func resourceIotHubDPS() *pluginsdk.Resource {
Optional: true,
Default: features.ThreePointOh(),
},
// TODO update docs with new default for 3.0
"allocation_weight": {
Type: pluginsdk.TypeInt,
Optional: true,
Default: 0,
Type: pluginsdk.TypeInt,
Optional: true,
Default: func() interface{} {
if features.ThreePointOh() {
return 1
}
return 0
}(),
ValidateFunc: validation.IntBetween(0, 1000),
},
"hostname": {
Expand Down

0 comments on commit cd7da5a

Please sign in to comment.