Skip to content

Commit adcee30

Browse files
committed
device_policy: fix Enabled value
1 parent 8df1bfe commit adcee30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

devices_policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
type Enabled struct {
13-
Enable bool `json:"enable"`
13+
Enabled bool `json:"enabled"`
1414
}
1515

1616
// DeviceClientCertificatesZone identifies if the zero trust zone is configured for an account.

devices_policy_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func TestUpdateDeviceClientCertificatesZone(t *testing.T) {
2020
"success": true,
2121
"errors": null,
2222
"messages": null,
23-
"result": {"enable": true}
23+
"result": {"enabled": true}
2424
}`)
2525
}
2626

@@ -53,7 +53,7 @@ func TestGetDeviceClientCertificatesZone(t *testing.T) {
5353
"success": true,
5454
"errors": null,
5555
"messages": null,
56-
"result": {"enable": false}
56+
"result": {"enabled": false}
5757
}`)
5858
}
5959

0 commit comments

Comments
 (0)