Skip to content

Commit

Permalink
fix: use correct flag name to lookup plugin env (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Feb 18, 2025
1 parent c523c2e commit 120aba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func environmentFlags(category string) []cli.Flag {
}

func EnvironmentFromContext(ctx *cli.Context) (Environment, error) {
env, ok := ctx.Generic("env").(*types.StringMapFlag)
env, ok := ctx.Generic("environment").(*types.StringMapFlag)
if !ok {
return nil, fmt.Errorf("%w: failed to read plugin environment", ErrTypeAssertionFailed)
}
Expand Down

0 comments on commit 120aba0

Please sign in to comment.