Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion photon/photon.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package photon
import (
"fmt"
"net/url"
"strings"

"github.com/quay/claircore/libvuln/driver"
"github.com/quay/claircore/pkg/ovalutil"
Expand Down Expand Up @@ -44,7 +45,7 @@ func NewUpdater(r Release, opts ...Option) (*Updater, error) {
}
if u.Fetcher.URL == nil {
var err error
u.Fetcher.URL, err = upstreamBase.Parse("com.vmware.phsa-" + string(u.release) + ".xml")
u.Fetcher.URL, err = upstreamBase.Parse("com.vmware.phsa-photon" + strings.TrimSuffix(string(u.release), ".0") + ".xml")
if err != nil {
return nil, err
}
Expand Down
2 changes: 2 additions & 0 deletions photon/updaterset.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ var photonReleases = []Release{
Photon1,
Photon2,
Photon3,
Photon4,
Photon5,
}

func UpdaterSet(_ context.Context) (driver.UpdaterSet, error) {
Expand Down
Loading