Skip to content

Commit f0e54bb

Browse files
[macos] VMWare host selection: do not count "vmkdump" folder as possible vm name when choosing available datastore (#7301)
1 parent 754cbcc commit f0e54bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

images.CI/macos/select-datastore.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function Select-DataStore {
6767
$availableDatastores = $availableClusterDatastores `
6868
| Where-Object { $_.FreeSpaceGB -ge $thresholdInGb } `
6969
| Where-Object {
70-
$vmOnDatastore = @((Get-ChildItem -Path $_.DatastoreBrowserPath).Name -notmatch "^\.").Count
70+
$vmOnDatastore = @((Get-ChildItem -Path $_.DatastoreBrowserPath).Name -notmatch '(^\.|vmkdump)').Count
7171
$vmOnDatastore -lt $vmCount } `
7272
| Group-Object -Property { $vmOnDatastore }
7373

0 commit comments

Comments
 (0)