mirror of https://github.com/docker/cli.git
Merge pull request #1389 from mason-fish/fix-subscription-filter
[18.09] fix subscription filter
This commit is contained in:
commit
1a087e87c9
|
@ -97,7 +97,7 @@ func (u HubUser) GetAvailableLicenses(ctx context.Context) ([]LicenseDisplay, er
|
||||||
// Filter out expired licenses
|
// Filter out expired licenses
|
||||||
i := 0
|
i := 0
|
||||||
for _, s := range subs {
|
for _, s := range subs {
|
||||||
if s.State != "expired" && s.Expires != nil {
|
if s.State == "active" && s.Expires != nil {
|
||||||
owner := ""
|
owner := ""
|
||||||
if s.DockerID == u.User.ID {
|
if s.DockerID == u.User.ID {
|
||||||
owner = u.User.Username
|
owner = u.User.Username
|
||||||
|
|
Loading…
Reference in New Issue