Skip to content

Commit

Permalink
Merge pull request hashicorp#145 from terraform-providers/b-docs-data…
Browse files Browse the repository at this point in the history
…center-data-source

d/datacenter: Re-word "default" datacenter doc references
  • Loading branch information
vancluever authored Aug 31, 2017
2 parents d0e15f1 + 10cf6a8 commit 306b6dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vsphere/data_source_vsphere_datacenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func dataSourceVSphereDatacenter() *schema.Resource {
Schema: map[string]*schema.Schema{
"name": &schema.Schema{
Type: schema.TypeString,
Description: "The name of the datacenter. This can be a name or path. If not provided, the default datacenter is used.",
Description: "The name of the datacenter. This can be a name or path. Can be omitted if there is only one datacenter in your inventory.",
Optional: true,
},
},
Expand Down
8 changes: 4 additions & 4 deletions website/docs/d/datacenter.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ data "vsphere_datacenter" "datacenter" {

The following arguments are supported:

* `name` - (String) The name of the datacenter. This can be a name or path. If
not provided, the default datacenter is used.
* `name` - (String) The name of the datacenter. This can be a name or path. Can
be omitted if there is only one datacenter in your inventory.

~> **NOTE:** When used against ESXi, this data source _always_ fetches the
server's "default" datacenter, which is a special datacenter unrelated to the
default datacenter that exists in vCenter. Hence, the `name` attribute is
completely ignored.
datacenters that exist in any vCenter server that might be managing this host.
Hence, the `name` attribute is completely ignored.

## Attribute Reference

Expand Down

0 comments on commit 306b6dd

Please sign in to comment.