mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 04:37:09 +00:00
[macos] VMWare host selection: do not count "vmkdump" folder as possible vm name when choosing available datastore (#7301)
This commit is contained in:
@@ -67,7 +67,7 @@ function Select-DataStore {
|
|||||||
$availableDatastores = $availableClusterDatastores `
|
$availableDatastores = $availableClusterDatastores `
|
||||||
| Where-Object { $_.FreeSpaceGB -ge $thresholdInGb } `
|
| Where-Object { $_.FreeSpaceGB -ge $thresholdInGb } `
|
||||||
| Where-Object {
|
| Where-Object {
|
||||||
$vmOnDatastore = @((Get-ChildItem -Path $_.DatastoreBrowserPath).Name -notmatch "^\.").Count
|
$vmOnDatastore = @((Get-ChildItem -Path $_.DatastoreBrowserPath).Name -notmatch '(^\.|vmkdump)').Count
|
||||||
$vmOnDatastore -lt $vmCount } `
|
$vmOnDatastore -lt $vmCount } `
|
||||||
| Group-Object -Property { $vmOnDatastore }
|
| Group-Object -Property { $vmOnDatastore }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user