From ac360f21638790fd6fd6cc5fa6b4b18fa79cbe45 Mon Sep 17 00:00:00 2001 From: Christopher Broglie Date: Mon, 28 Oct 2019 11:31:33 -0700 Subject: [PATCH] Fix bug causing selfsign to ignore the default profile --- cli/selfsign/selfsign.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/selfsign/selfsign.go b/cli/selfsign/selfsign.go index a4d8f7c44..4b70ecb06 100644 --- a/cli/selfsign/selfsign.go +++ b/cli/selfsign/selfsign.go @@ -87,6 +87,9 @@ func selfSignMain(args []string, c cli.Config) (err error) { if c.Profile != "" && c.CFG.Signing.Profiles != nil { profile = c.CFG.Signing.Profiles[c.Profile] } + if profile == nil { + profile = c.CFG.Signing.Default + } } if profile == nil {