Skip to content

Commit

Permalink
Merge pull request #6 from ibuildthecloud/ls-env
Browse files Browse the repository at this point in the history
List all environments
  • Loading branch information
ibuildthecloud authored Aug 12, 2016
2 parents 367f3b1 + c678e00 commit 9826d59
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,12 @@ func envLs(ctx *cli.Context) error {
}, ctx)
defer writer.Close()

collection, err := c.Project.List(nil)
collection := client.ProjectCollection{}
err = c.List("account", &client.ListOpts{
Filters: map[string]interface{}{
"kind": "project",
},
}, &collection)
if err != nil {
return err
}
Expand Down

0 comments on commit 9826d59

Please sign in to comment.