Skip to content

Commit 761f106

Browse files
chore: remove usage of trivy log package
1 parent 0a006d8 commit 761f106

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/agent/daemon/pipeline/storage_info_provider.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"syscall"
1313
"time"
1414

15-
"github.com/aquasecurity/trivy/pkg/log"
1615
"github.com/cespare/xxhash/v2"
1716
"github.com/elastic/go-freelru"
1817
"github.com/samber/lo"
@@ -480,7 +479,7 @@ func (s *SysfsStorageInfoProvider) buildFilesystemMetric(mount mountInfo, timest
480479
}
481480

482481
// Check whether the filesystem is holding kubelet and/or castai-storage directories
483-
labels := buildFilesystemLabels(devID, s.wellKnownPathDeviceID)
482+
labels := buildFilesystemLabels(s.log, devID, s.wellKnownPathDeviceID)
484483

485484
metric := FilesystemMetric{
486485
Devices: s.getBackingDevices(mount.Device),
@@ -1008,7 +1007,7 @@ func getDeviceIDForPath(path string) (uint64, error) {
10081007
return uint64(stat.Dev), nil
10091008
}
10101009

1011-
func buildFilesystemLabels(fsMountPointDeviceID uint64, wellKnownPathsDeviceID map[string]uint64) map[string]string {
1010+
func buildFilesystemLabels(log *logging.Logger, fsMountPointDeviceID uint64, wellKnownPathsDeviceID map[string]uint64) map[string]string {
10121011
labels := make(map[string]string)
10131012
if devID, ok := wellKnownPathsDeviceID[kubeletPath]; ok {
10141013
if devID == fsMountPointDeviceID {

0 commit comments

Comments
 (0)