Skip to content

Commit

Permalink
fix tests and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rajagopalans committed Jun 23, 2023
1 parent 74a7047 commit 25890ab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions docs/resources/datacenter_property_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This resource imports a property set into a Blueprint.
```terraform
#reference a blueprint
data "apstra_datacenter_blueprint" "b" {
name = "raj1"
name = "demo1"
}
#reference a property set from the global catalog
data "apstra_property_set" "ps" {
Expand All @@ -24,8 +24,7 @@ data "apstra_property_set" "ps" {
resource "apstra_datacenter_property_set" "r" {
blueprint_id = data.apstra_datacenter_blueprint.b.id
id = data.apstra_property_set.ps.id
# uncomment below to import only one key. If no keys are mentioned, all keys are imported
# keys = toset(["junos_mgmt_vrf"])
keys = data.apstra_property_set.ps.keys
}
output "p" {
value = resource.apstra_datacenter_property_set.r
Expand All @@ -35,7 +34,10 @@ output "p" {
# "blueprint_id" = "d6c74373-45ce-4d88-9547-ac23c2ebe61e"
# "data" = "{\"junos_mgmt_vrf\": \"mgmt_junos\", \"mgmt_vrf\": \"management\"}"
# "id" = "3ae45f2e-c9ed-401b-8f00-367fb9a5e0e8"
# "keys" = toset(null) /* of string */
# "keys" = toset([
# "junos_mgmt_vrf",
# "mgmt_vrf",
# ])
# "name" = "MGMT VRF"
# "stale" = false
#}
Expand Down
10 changes: 6 additions & 4 deletions examples/resources/apstra_datacenter_property_set/example.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#reference a blueprint
data "apstra_datacenter_blueprint" "b" {
name = "raj1"
name = "demo1"
}
#reference a property set from the global catalog
data "apstra_property_set" "ps" {
Expand All @@ -10,8 +10,7 @@ data "apstra_property_set" "ps" {
resource "apstra_datacenter_property_set" "r" {
blueprint_id = data.apstra_datacenter_blueprint.b.id
id = data.apstra_property_set.ps.id
# uncomment below to import only one key. If no keys are mentioned, all keys are imported
# keys = toset(["junos_mgmt_vrf"])
keys = data.apstra_property_set.ps.keys
}
output "p" {
value = resource.apstra_datacenter_property_set.r
Expand All @@ -21,7 +20,10 @@ output "p" {
# "blueprint_id" = "d6c74373-45ce-4d88-9547-ac23c2ebe61e"
# "data" = "{\"junos_mgmt_vrf\": \"mgmt_junos\", \"mgmt_vrf\": \"management\"}"
# "id" = "3ae45f2e-c9ed-401b-8f00-367fb9a5e0e8"
# "keys" = toset(null) /* of string */
# "keys" = toset([
# "junos_mgmt_vrf",
# "mgmt_vrf",
# ])
# "name" = "MGMT VRF"
# "stale" = false
#}

0 comments on commit 25890ab

Please sign in to comment.