From 23602de816b9ee3e92a8cbac295e955ba43fa283 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Fri, 5 Apr 2019 19:49:36 -0500 Subject: Revert "Switch to golangci-lint" Signed-off-by: baude --- cmd/podman/trust_set_show.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd/podman/trust_set_show.go') diff --git a/cmd/podman/trust_set_show.go b/cmd/podman/trust_set_show.go index cd6c4897e..626d27aae 100644 --- a/cmd/podman/trust_set_show.go +++ b/cmd/podman/trust_set_show.go @@ -7,6 +7,7 @@ import ( "strings" "github.com/containers/buildah/pkg/formats" + "github.com/containers/image/types" "github.com/containers/libpod/cmd/podman/cliconfig" "github.com/containers/libpod/cmd/podman/libpodruntime" "github.com/containers/libpod/libpod/image" @@ -236,6 +237,10 @@ func isValidTrustType(t string) bool { return false } +func getDefaultPolicyPath() string { + return trust.DefaultPolicyPath(&types.SystemContext{}) +} + func getPolicyJSON(policyContentStruct trust.PolicyContent, systemRegistriesDirPath string) (map[string]map[string]interface{}, error) { registryConfigs, err := trust.LoadAndMergeConfig(systemRegistriesDirPath) if err != nil { -- cgit v1.2.3-54-g00ecf