taking out message when yubikey not found

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
David Lawrence 2015-11-10 14:39:33 -08:00
parent 6acc130e17
commit a21287c0d1
1 changed files with 1 additions and 3 deletions

View File

@ -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}