mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
Incorporate import changes + add image overwrite option (#294)
* incorporate import changes + add image overwrite option Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * update import tests to account for arbitrary json shape Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
@@ -83,7 +83,7 @@ func ParseImportStarted(e partybus.Event) (string, progress.StagedProgressable,
|
||||
return "", nil, err
|
||||
}
|
||||
|
||||
imgName, ok := e.Source.(string)
|
||||
host, ok := e.Source.(string)
|
||||
if !ok {
|
||||
return "", nil, newPayloadErr(e.Type, "Source", e.Source)
|
||||
}
|
||||
@@ -93,5 +93,5 @@ func ParseImportStarted(e partybus.Event) (string, progress.StagedProgressable,
|
||||
return "", nil, newPayloadErr(e.Type, "Value", e.Value)
|
||||
}
|
||||
|
||||
return imgName, prog, nil
|
||||
return host, prog, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user