Skip to content

Commit

Permalink
dagger list: skip environment if it can't be decryted
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
  • Loading branch information
aluzzardi committed May 25, 2021
1 parent 0acd3a2 commit 155c90e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dagger/state/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"path/filepath"

"dagger.io/go/dagger/keychain"
"github.com/rs/zerolog/log"
"gopkg.in/yaml.v3"
)

Expand Down Expand Up @@ -109,7 +110,12 @@ func (w *Workspace) List(ctx context.Context) ([]*State, error) {
}
st, err := w.Get(ctx, f.Name())
if err != nil {
return nil, err
log.
Ctx(ctx).
Err(err).
Str("name", f.Name()).
Msg("failed to load environment")
continue
}
environments = append(environments, st)
}
Expand Down

0 comments on commit 155c90e

Please sign in to comment.