From 3632151436b7d4a1f10e0211ce75f277aa02395f Mon Sep 17 00:00:00 2001 From: Mason Fish Date: Mon, 24 Sep 2018 16:51:05 -0700 Subject: [PATCH] fix subscription filter Signed-off-by: Mason Fish Upstream-commit: a31b20d7dbce383f94c87583e483d81a9809a42d Component: cli --- components/cli/internal/licenseutils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cli/internal/licenseutils/utils.go b/components/cli/internal/licenseutils/utils.go index 984b204a83..4d330c115f 100644 --- a/components/cli/internal/licenseutils/utils.go +++ b/components/cli/internal/licenseutils/utils.go @@ -97,7 +97,7 @@ func (u HubUser) GetAvailableLicenses(ctx context.Context) ([]LicenseDisplay, er // Filter out expired licenses i := 0 for _, s := range subs { - if s.State != "expired" && s.Expires != nil { + if s.State == "active" && s.Expires != nil { owner := "" if s.DockerID == u.User.ID { owner = u.User.Username