Skip to content

Commit e5529eb

Browse files
committed
Fix size reporting for stateless boot devices
1 parent 42ba118 commit e5529eb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
### Fixed
1414
- Section error with vSAN InfoLevel 4 or above
1515
- Corrected text color for highlighted cells in default VMware style
16+
- Fixed reporting of stateless boot devices (Fix #76)
1617

1718
## [1.1.3 - 2020-02-04]
1819
### Added

Src/Public/Invoke-AsBuiltReport.VMware.vSphere.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,10 @@ function Invoke-AsBuiltReport.VMware.vSphere {
19111911
'Boot Type' = $ESXiBootDevice.BootType
19121912
'Vendor' = $ESXiBootDevice.Vendor
19131913
'Model' = $ESXiBootDevice.Model
1914-
'Size' = "$([math]::Round($ESXiBootDevice.SizeMB / 1024, 2)) GB"
1914+
'Size' = Switch ($ESXiBootDevice.SizeMB) {
1915+
'N/A' { 'N/A' }
1916+
default { "$([math]::Round($ESXiBootDevice.SizeMB / 1024, 2)) GB" }
1917+
}
19151918
'Is SAS' = $ESXiBootDevice.IsSAS
19161919
'Is SSD' = $ESXiBootDevice.IsSSD
19171920
'Is USB' = $ESXiBootDevice.IsUSB

0 commit comments

Comments
 (0)