Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 1624adb

Browse files
authored
Fix issue that prevents SSHKey from being set on new workspaces.
2 parents 2c73b68 + f1fb4df commit 1624adb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

operator/pkg/controller/workspace/tfc_org.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ func (t *TerraformCloudClient) CheckWorkspace(workspace string, instance *appv1a
5555
id, err := t.CreateWorkspace(workspace)
5656
if err != nil {
5757
return "", err
58+
} else {
59+
ws = &tfc.Workspace{ID: id}
5860
}
59-
return id, nil
6061
} else if err != nil {
6162
return "", err
6263
}

0 commit comments

Comments
 (0)