diff --git a/tfe/data_source_organization_run_task.go b/tfe/data_source_organization_run_task.go index 1cf4eea0b..8239f88b4 100644 --- a/tfe/data_source_organization_run_task.go +++ b/tfe/data_source_organization_run_task.go @@ -34,6 +34,11 @@ func dataSourceTFEOrganizationRunTask() *schema.Resource { Type: schema.TypeBool, Optional: true, }, + + "description": { + Type: schema.TypeString, + Optional: true, + }, }, } } @@ -51,6 +56,7 @@ func dataSourceTFEOrganizationRunTaskRead(d *schema.ResourceData, meta interface d.Set("url", task.URL) d.Set("category", task.Category) d.Set("enabled", task.Enabled) + d.Set("description", task.Description) d.SetId(task.ID) return nil diff --git a/tfe/data_source_organization_run_task_test.go b/tfe/data_source_organization_run_task_test.go index 9b53a7855..6e52ab984 100644 --- a/tfe/data_source_organization_run_task_test.go +++ b/tfe/data_source_organization_run_task_test.go @@ -28,6 +28,7 @@ func TestAccTFEOrganizationRunTaskDataSource_basic(t *testing.T) { resource.TestCheckResourceAttr("data.tfe_organization_run_task.foobar", "url", runTasksURL()), resource.TestCheckResourceAttr("data.tfe_organization_run_task.foobar", "category", "task"), resource.TestCheckResourceAttr("data.tfe_organization_run_task.foobar", "enabled", "false"), + resource.TestCheckResourceAttr("data.tfe_organization_run_task.foobar", "description", "a description"), resource.TestCheckResourceAttrSet("data.tfe_organization_run_task.foobar", "id"), resource.TestCheckResourceAttrSet("data.tfe_organization_run_task.foobar", "organization"), ), @@ -49,6 +50,7 @@ resource "tfe_organization_run_task" "foobar" { name = "foobar-task-%d" hmac_key = "Password1" enabled = false + description = "a description" } data "tfe_organization_run_task" "foobar" { diff --git a/website/docs/d/organization_run_task.html.markdown b/website/docs/d/organization_run_task.html.markdown index 70a25fbf9..b25445d48 100644 --- a/website/docs/d/organization_run_task.html.markdown +++ b/website/docs/d/organization_run_task.html.markdown @@ -33,6 +33,7 @@ The following arguments are supported: In addition to all arguments above, the following attributes are exported: * `category` - The type of task. +* `description` - A short description of the the task. * `enabled` - Whether the task will be run. -* `id` - The ID of the Run task. -* `url` - URL to send a run task payload. +* `id` - The ID of the task. +* `url` - URL to send a task payload. diff --git a/website/docs/r/organization_run_task.html.markdown b/website/docs/r/organization_run_task.html.markdown index 56773b34d..162b09aed 100644 --- a/website/docs/r/organization_run_task.html.markdown +++ b/website/docs/r/organization_run_task.html.markdown @@ -22,6 +22,7 @@ resource "tfe_organization_run_task" "example" { url = "https://external.service.com" name = "task-name" enabled = true + description = "An example task" } ``` @@ -31,6 +32,7 @@ The following arguments are supported: * `category` - (Optional) The type of task. * `enabled` - (Optional) Whether the task will be run. +* `description` - (Optional) A short description of the the task. * `hmac_key` - (Optional) HMAC key to verify run task. * `name` - (Required) Name of the task. * `organization` - (Required) Name of the organization.