This commit is contained in:
Eric Sim 2018-12-11 16:11:04 -08:00
parent 8fb9097dbd
commit 803cf4a29e
4 changed files with 39 additions and 39 deletions

View File

@ -54,7 +54,7 @@ type updater struct {
func init() { func init() {
// Register updater for Amazon Linux 2018.03. // Register updater for Amazon Linux 2018.03.
amazonLinux1Updater := updater { amazonLinux1Updater := updater{
Name: amazonLinux1Name, Name: amazonLinux1Name,
Namespace: amazonLinux1Namespace, Namespace: amazonLinux1Namespace,
UpdaterFlag: amazonLinux1UpdaterFlag, UpdaterFlag: amazonLinux1UpdaterFlag,
@ -63,7 +63,7 @@ func init() {
vulnsrc.RegisterUpdater("amzn", &amazonLinux1Updater) vulnsrc.RegisterUpdater("amzn", &amazonLinux1Updater)
// Register updater for Amazon Linux 2. // Register updater for Amazon Linux 2.
amazonLinux2Updater := updater { amazonLinux2Updater := updater{
Name: amazonLinux2Name, Name: amazonLinux2Name,
Namespace: amazonLinux2Namespace, Namespace: amazonLinux2Namespace,
UpdaterFlag: amazonLinux2UpdaterFlag, UpdaterFlag: amazonLinux2UpdaterFlag,
@ -82,7 +82,7 @@ func (u *updater) Update(datastore database.Datastore) (response vulnsrc.UpdateR
} }
if !found { if !found {
flagValue = ""; flagValue = ""
} }
var timestamp string var timestamp string

View File

@ -120,7 +120,7 @@ func TestAmazonLinux1(t *testing.T) {
} }
func TestAmazonLinux2(t *testing.T) { func TestAmazonLinux2(t *testing.T) {
amazonLinux2Updater := updater { amazonLinux2Updater := updater{
Name: "Amazon Linux 2", Name: "Amazon Linux 2",
Namespace: "amzn:2", Namespace: "amzn:2",
UpdaterFlag: "amazonLinux2Updater", UpdaterFlag: "amazonLinux2Updater",