Skip to content

Commit 0f94cc2

Browse files
Added orgname in github_orgranization attributes (#1052)
Co-authored-by: Keegan Campbell <[email protected]>
1 parent 5a030d9 commit 0f94cc2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

github/data_source_github_organization.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ func dataSourceGithubOrganization() *schema.Resource {
1616
Type: schema.TypeString,
1717
Required: true,
1818
},
19+
"orgname": {
20+
Type: schema.TypeString,
21+
Computed: true,
22+
},
1923
"node_id": {
2024
Type: schema.TypeString,
2125
Computed: true,
@@ -118,6 +122,7 @@ func dataSourceGithubOrganizationRead(d *schema.ResourceData, meta interface{})
118122
d.SetId(strconv.FormatInt(organization.GetID(), 10))
119123
d.Set("login", organization.GetLogin())
120124
d.Set("name", organization.GetName())
125+
d.Set("orgname", name)
121126
d.Set("description", organization.GetDescription())
122127
d.Set("plan", planName)
123128
d.Set("repositories", repoList)

0 commit comments

Comments
 (0)