Skip to content

Commit b9f929c

Browse files
authored
Dont call Connect-Yubikey when calculating paramaters for Connect-YubiKeyFIDO2 (#175)
Dont call Connect-Yubikey when calculating parameters for Connect-YubiKeyFIDO2
1 parent ef7fea0 commit b9f929c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Module/Cmdlets/FIDO2/ConnectYubikeyFIDO2.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public class ConnectYubikeyFIDO2Command : PSCmdlet, IDynamicParameters
3434
// Get dynamic parameters based on YubiKey state
3535
public object GetDynamicParameters()
3636
{
37-
try { YubiKeyModule.ConnectYubikey(); } catch { }
37+
// Block this out so that Cmdlet tab completion does not call Connect-Yubikey
38+
// try { YubiKeyModule.ConnectYubikey(); } catch { }
3839

3940
Collection<Attribute> PIN;
4041
if (YubiKeyModule._yubikey is not null)

0 commit comments

Comments
 (0)