Skip to content

Commit

Permalink
fix: blank credentials in get-vcenterserverdetail (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJBlake authored Nov 20, 2023
1 parent b745777 commit a4c65fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## v2.7.1

> Release Date: 2023-11-20
- Fixed `Get-vCenterServerDetail` cmdlet where partial upgrade of specific versions of a VMware Cloud Foundation instance cause blank vCenter Server credentials to be returned.

## v2.7.0

> Release Date: 2023-11-07
Expand Down
4 changes: 2 additions & 2 deletions PowerValidatedSolutions.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: VMware Inc.
#
# Generated on: 2023-11-07
# Generated on: 2023-11-20
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'PowerValidatedSolutions.psm1'

# Version number of this module.
ModuleVersion = '2.7.0.1027'
ModuleVersion = '2.7.1.1000'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
3 changes: 2 additions & 1 deletion PowerValidatedSolutions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -16268,7 +16268,8 @@ Function Get-vCenterServerDetail {
$vcfWorkloadDomainDetails = Get-VCFWorkloadDomain | Where-Object { $_.name -eq $domain }
}
if ($vcfWorkloadDomainDetails) {
$vcfDetail = Get-VCFManager
#$vcfDetail = Get-VCFManager
$vcfDetail = Get-VCFRelease -domainId $vcfWorkloadDomainDetails.id
$vcenterServerDetails = Get-VCFvCenter | Where-Object { $_.id -eq $($vcfWorkloadDomainDetails.vcenters.id) }
$vcenterCredentialDetails = Get-VCFCredential | Where-Object { $_.resource.resourceId -eq $($vcenterServerDetails.id) }
if ( ($vcfDetail.version).Split("-")[0] -ge "4.5.0.0") {
Expand Down

0 comments on commit a4c65fc

Please sign in to comment.