Skip to content

Commit

Permalink
Fix path for listing context variables
Browse files Browse the repository at this point in the history
The URL for listing environment variables in a context is broken. The proposed change should fix the problem.
  • Loading branch information
bobthebuilderberlin committed May 27, 2022
1 parent 830ced0 commit 4fed999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (s *contexts) ListVariables(ctx context.Context, contextID string) (*Contex
return nil, ErrRequiredContextID
}

u := fmt.Sprintf("context/%s", contextID)
u := fmt.Sprintf("context/%s/environment-variable", contextID)
req, err := s.client.newRequest("GET", u, nil)
if err != nil {
return nil, err
Expand Down

0 comments on commit 4fed999

Please sign in to comment.