Skip to content

Commit 41e304b

Browse files
author
Sean Sain
committed
make is_active required and fix docs
1 parent 8d99fc2 commit 41e304b

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## 2.6.4 (Unreleased)
22

3+
BUG FIXES:
4+
5+
* is_active is now required in sumologic_user, doc fixes
6+
37
## 2.6.3 (January 15, 2021)
48

59
FEATURES:

sumologic/resource_sumologic_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func resourceSumologicUser() *schema.Resource {
5050
},
5151
"is_active": {
5252
Type: schema.TypeBool,
53-
Optional: true,
53+
Required: true,
5454
},
5555
"transfer_to": {
5656
Type: schema.TypeString,

website/docs/r/user.html.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ resource "sumologic_user" "example_user1" {
2323
first_name = "Jon"
2424
last_name = "Doe"
2525
26-
active = false
27-
role_ids = ["${sumologic_role.example_role.id}"]
26+
is_active = true
27+
role_ids = [sumologic_role.example_role.id]
2828
transfer_to = ""
2929
}
3030
3131
resource "sumologic_user" "example_user2" {
3232
first_name = "Jane"
3333
last_name = "Smith"
3434
35-
role_ids = ["${sumologic_role.example_role.id}"]
36-
transfer_to = "${sumologic_user.example_user1.id}"
35+
role_ids = [sumologic_role.example_role.id]
36+
transfer_to = sumologic_user.example_user1.id
3737
}
3838
```
3939

@@ -44,7 +44,7 @@ The following arguments are supported:
4444
- `first_name` - (Required) First name of the user.
4545
- `last_name` - (Required) Last name of the user.
4646
- `email` - (Required) Last name of the user.
47-
- `active` - (Optional) This has the value true if the user is active and false if they have been deactivated..
47+
- `is_active` - (Required) This has the value true if the user is active and false if they have been deactivated..
4848
- `role_ids` - (Required) List of roleIds associated with the user.
4949
- `transfer_to` - (Required) UserId of user to transfer this user's content to on deletion, can be empty. Must be applied prior to deletion to take effect.
5050

0 commit comments

Comments
 (0)