Skip to content

Commit

Permalink
Merge pull request #119 from Cloud-Temple/bug/118
Browse files Browse the repository at this point in the history
Fixed a bug causing plugin to crash when using the datasource cloudtemple_compute_content_library_items
  • Loading branch information
KChapron committed Nov 28, 2023
2 parents 0d5d4fc + 2ba43a2 commit 2bcfaa6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.12.2 (November 28th, 2023)

BUG FIXES:

* Fixed a bug causing plugin to crash when using the datasource cloudtemple_compute_content_library_items

## 0.12.1 (November 23rd, 2023)

BUG FIXES:
Expand Down
4 changes: 4 additions & 0 deletions docs/data-sources/compute_content_library_items.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ data "cloudtemple_compute_content_library_items" "items" {

- `content_library_id` (String)

### Optional

- `name` (String)

### Read-Only

- `content_library_items` (List of Object) (see [below for nested schema](#nestedatt--content_library_items))
Expand Down
7 changes: 5 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ provider "cloudtemple" {
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `client_id` (String) The client ID to login to the API with. Can also be specified with the environment variable `CLOUDTEMPLE_CLIENT_ID`.
- `secret_id` (String, Sensitive) The secret ID to login to the API with. Can also be specified with the environment variable `CLOUDTEMPLE_SECRET_ID`.

### Optional

- `address` (String) The HTTP address to connect to the API. Defaults to `shiva.cloud-temple.com`. Can also be specified with the environment variable `CLOUDTEMPLE_HTTP_ADDR`.
- `api_suffix` (Boolean) Specify whether it is necessary to use an /api suffix after the address. (Used for development purpose only)
- `client_id` (String) The client ID to login to the API with. Can also be specified with the environment variable `CLOUDTEMPLE_CLIENT_ID`.
- `scheme` (String) The URL scheme to used to connect to the API. Default to `https`. Can also be specified with the environment variable `CLOUDTEMPLE_HTTP_SCHEME`.
- `secret_id` (String, Sensitive) The secret ID to login to the API with. Can also be specified with the environment variable `CLOUDTEMPLE_SECRET_ID`.

## Logging

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ func dataSourceContentLibraryItems() *schema.Resource {

Schema: map[string]*schema.Schema{
// In
"name": {
Type: schema.TypeString,
Optional: true,
},
"content_library_id": {
Type: schema.TypeString,
Required: true,
Expand Down

0 comments on commit 2bcfaa6

Please sign in to comment.