Skip to content

Commit cb4228c

Browse files
authored
Filtering for VMs with SSH keys (AutomatedLab#1772)
1 parent 6c8fdec commit cb4228c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AutomatedLabCore/functions/Remoting/Install-LabSshKnownHost.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
return
1010
}
1111

12-
$machines = Get-LabVM -All -IncludeLinux | Where-Object -FilterScript { -not $_.SkipDeployment }
12+
$machines = Get-LabVM -All -IncludeLinux | Where-Object -FilterScript { -not $_.SkipDeployment -and $_.SshPublicKey }
1313
if (-not $machines)
1414
{
1515
return

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
### Bugs
88

99
- Fixed issue with case-sensitive Linux OS name matching (#1766)
10+
- Added filtering to Install-LabSshKnownHost in an attempt to speed up the function
1011

1112
## 5.59.0 (2025-08-18)
1213

0 commit comments

Comments
 (0)