From a11a3b6887fd868c17de8f36f75d7b45a46a5d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20D=C5=82ugoszek?= Date: Thu, 24 Oct 2024 14:55:08 +0200 Subject: [PATCH] Fix docs --- docs/data-sources/space_by_path.md | 4 ++-- spacelift/data_space_by_path.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/data-sources/space_by_path.md b/docs/data-sources/space_by_path.md index 82822acd..3239c042 100644 --- a/docs/data-sources/space_by_path.md +++ b/docs/data-sources/space_by_path.md @@ -4,7 +4,7 @@ page_title: "spacelift_space_by_path Data Source - terraform-provider-spacelift" subcategory: "" description: |- spacelift_space_by_path represents a Spacelift space - a collection of resources such as stacks, modules, policies, etc. Allows for more granular access control. Can have a parent space. In contrary to spacelift_space, this resource is identified by a path, not by an ID. For this data source to work, path must be unique. If there are multiple spaces with the same path, this datasource will fail. - This data source can be used either with absolute paths (starting with root) or relative paths. In the latter case, the path is relative to the current space the spacelift run is. + This data source can be used either with absolute paths (starting with root) or relative paths. In the latter case, the path is relative to the space the stack for which the current run is executing is in. Disclaimer: This datasource can only be used in a stack that resides in a space with inheritance enabled. In addition, the parent spaces (excluding root) must also have inheritance enabled. --- @@ -12,7 +12,7 @@ description: |- # spacelift_space_by_path (Data Source) `spacelift_space_by_path` represents a Spacelift **space** - a collection of resources such as stacks, modules, policies, etc. Allows for more granular access control. Can have a parent space. In contrary to `spacelift_space`, this resource is identified by a path, not by an ID. For this data source to work, path must be unique. If there are multiple spaces with the same path, this datasource will fail. -This data source can be used either with absolute paths (starting with `root`) or relative paths. In the latter case, the path is relative to the current space the spacelift run is. +This data source can be used either with absolute paths (starting with `root`) or relative paths. In the latter case, the path is relative to the space the stack for which the current run is executing is in. **Disclaimer:** This datasource can only be used in a stack that resides in a space with inheritance enabled. In addition, the parent spaces (excluding root) must also have inheritance enabled. diff --git a/spacelift/data_space_by_path.go b/spacelift/data_space_by_path.go index 2697177e..ef7f5c08 100644 --- a/spacelift/data_space_by_path.go +++ b/spacelift/data_space_by_path.go @@ -18,7 +18,7 @@ func dataSpaceByPath() *schema.Resource { Description: "`spacelift_space_by_path` represents a Spacelift **space** - " + "a collection of resources such as stacks, modules, policies, etc. Allows for more granular access control. Can have a parent space. In contrary to `spacelift_space`, this resource is identified by a path, not by an ID. " + "For this data source to work, path must be unique. If there are multiple spaces with the same path, this datasource will fail. \n" + - "This data source can be used either with absolute paths (starting with `root`) or relative paths. In the latter case, the path is relative to the current space the spacelift run is. \n" + + "This data source can be used either with absolute paths (starting with `root`) or relative paths. In the latter case, the path is relative to the space the stack for which the current run is executing is in. \n" + "**Disclaimer:** \n" + "This datasource can only be used in a stack that resides in a space with inheritance enabled. In addition, the parent spaces (excluding root) must also have inheritance enabled.",