From a21287c0d15c6d9fa7a2f88275a5a903b73390d4 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 10 Nov 2015 14:39:33 -0800 Subject: [PATCH] taking out message when yubikey not found Signed-off-by: David Lawrence (github: endophage) --- cmd/notary/keys.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/notary/keys.go b/cmd/notary/keys.go index 218b68e67a..ba8f578a76 100644 --- a/cmd/notary/keys.go +++ b/cmd/notary/keys.go @@ -339,9 +339,7 @@ func getKeyStores(cmd *cobra.Command, directory string, if withHardware { yubiStore, err := getYubiKeyStore(fileKeyStore, ret) - if err != nil { - cmd.Println("No YubiKey detected - using local filesystem only.") - } else { + if err == nil && yubiStore != nil { // Note that the order is important, since we want to prioritize // the yubikey store ks = []trustmanager.KeyStore{yubiStore, fileKeyStore}