Skip to content

Commit c21d331

Browse files
authored
v0.1.1 Prep (#42)
1 parent 3c0721e commit c21d331

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
**Added**
1111

12+
**Changed**
13+
14+
**Removed**
15+
16+
## [v0.1.1] - 2022.09.11
17+
18+
**Added**
19+
1220
* `tfx workspace team list` - List team access information for a given Workspace.
1321

1422
**Changed**
@@ -19,7 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1927

2028
**Removed**
2129

22-
## [0.1.0] - 2022.08.21
30+
## [v0.1.0] - 2022.08.21
2331

2432
First official release!
2533

cmd/workspace.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,12 @@ func workspaceShow(c TfxClientContext, workspaceName string) error {
296296
logError(err, "failed to read workspace")
297297
}
298298

299-
rsc, err := workspaceListAllRemoteStateConsumers(c, w.ID)
300-
if err != nil {
301-
return errors.Wrap(err, "failed to list remote state consumers")
299+
var rsc []*tfe.Workspace
300+
if !w.GlobalRemoteState { //if global remote state, do not call this
301+
rsc, err = workspaceListAllRemoteStateConsumers(c, w.ID)
302+
if err != nil {
303+
return errors.Wrap(err, "failed to list remote state consumers")
304+
}
302305
}
303306

304307
ta, err := workspaceListAllTeams(c, w.ID, math.MaxInt)
@@ -341,7 +344,7 @@ func workspaceShow(c TfxClientContext, workspaceName string) error {
341344

342345
// if there are any Statefile Sharing with workspaces,
343346
// loop through workspace and get names
344-
if len(rsc) > 0 {
347+
if !w.GlobalRemoteState && len(rsc) > 0 {
345348
var wsNames []interface{}
346349
for _, i := range rsc {
347350
wsNames = append(wsNames, i.Name)

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package version
22

33
var (
4-
Version = "0.1.0"
4+
Version = "0.1.1"
55
Prerelease = ""
66
Build = ""
77
Date = ""

0 commit comments

Comments
 (0)