mirror of https://github.com/docker/docs.git
taking out message when yubikey not found
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
parent
6acc130e17
commit
a21287c0d1
|
|
@ -339,9 +339,7 @@ func getKeyStores(cmd *cobra.Command, directory string,
|
||||||
|
|
||||||
if withHardware {
|
if withHardware {
|
||||||
yubiStore, err := getYubiKeyStore(fileKeyStore, ret)
|
yubiStore, err := getYubiKeyStore(fileKeyStore, ret)
|
||||||
if err != nil {
|
if err == nil && yubiStore != nil {
|
||||||
cmd.Println("No YubiKey detected - using local filesystem only.")
|
|
||||||
} else {
|
|
||||||
// Note that the order is important, since we want to prioritize
|
// Note that the order is important, since we want to prioritize
|
||||||
// the yubikey store
|
// the yubikey store
|
||||||
ks = []trustmanager.KeyStore{yubiStore, fileKeyStore}
|
ks = []trustmanager.KeyStore{yubiStore, fileKeyStore}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue