Skip to content

Commit 18e4460

Browse files
committed
Fix Issue #77
- Fixed issue where script was failing trying to parse vSphere Tag data (Fix #77) - Changed Tag Assignment section to separate the category and tag to their own table columns - Changed Tag Assignment section to sort on Entity - Change $TagAssignmentResults variable to $TagAssignmentInfo
1 parent e5529eb commit 18e4460

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99

1010
### Changed
1111
- Enhanced vCenter alarm reporting
12+
- Changed Tag Assignment section to separate the category and tag to their own table columns
13+
- Changed Tag Assignment section to sort on Entity
1214

1315
### Fixed
1416
- Section error with vSAN InfoLevel 4 or above
1517
- Corrected text color for highlighted cells in default VMware style
1618
- Fixed reporting of stateless boot devices (Fix #76)
19+
- Fixed issue where script was failing trying to parse vSphere Tag data (Fix #77)
1720

1821
## [1.1.3 - 2020-02-04]
1922
### Added

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,14 @@ function Invoke-AsBuiltReport.VMware.vSphere {
786786
$TagAssignments = Get-TagAssignment -Server $vCenter
787787
if ($TagAssignments) {
788788
Section -Style Heading3 'Tag Assignments' {
789-
$TagAssignments | Sort-Object Tag, Entity | Table -Name 'Tag Assignments' -Columns Tag, Entity -ColumnWidths 50, 50
789+
$TagAssignmentInfo = foreach ($TagAssignment in $TagAssignments) {
790+
[PSCustomObject]@{
791+
'Entity' = $TagAssignment.Entity.Name
792+
'Tag' = $TagAssignment.Tag.Name
793+
'Category' = $TagAssignment.Tag.Category
794+
}
795+
}
796+
$TagAssignmentInfo | Sort-Object Entity | Table -Name 'Tag Assignments'
790797
}
791798
}
792799
#endregion vCenter Server Tag Assignments

0 commit comments

Comments
 (0)