We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f26f779 commit 8f77b19Copy full SHA for 8f77b19
internal/backend/local/backend.go
@@ -7,7 +7,6 @@ import (
7
"context"
8
"errors"
9
"fmt"
10
- "io/ioutil"
11
"log"
12
"os"
13
"path/filepath"
@@ -207,7 +206,7 @@ func (b *Local) Workspaces() ([]string, tfdiags.Diagnostics) {
207
206
// the listing always start with "default"
208
envs := []string{backend.DefaultStateName}
209
210
- entries, err := ioutil.ReadDir(b.stateWorkspaceDir())
+ entries, err := os.ReadDir(b.stateWorkspaceDir())
211
// no error if there's no envs configured
212
if os.IsNotExist(err) {
213
return envs, nil
0 commit comments