File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Release History
2
2
3
+ ## v2.4.1
4
+
5
+ > Released: 2023-12-15
6
+
7
+ - Updated the module's internal ` checkVCFToken ` function to ensure and expired token can be refresh when using PowerShell 7.
8
+
3
9
## v2.4.0
4
10
5
11
> Released: 2023-10-02
Original file line number Diff line number Diff line change 3
3
4
4
# Module manifest for module 'PowerVCF'
5
5
# Generated by: Broadcom
6
- # Generated on: 2023-11-28
6
+ # Generated on: 2023-12-15
7
7
8
8
@ {
9
9
10
10
# Script module or binary module file associated with this manifest.
11
11
RootModule = ' PowerVCF.psm1'
12
12
13
13
# Version number of this module.
14
- ModuleVersion = ' 2.5.0 .1000'
14
+ ModuleVersion = ' 2.4.1 .1000'
15
15
16
16
# Supported PSEditions
17
17
# CompatiblePSEditions = @()
@@ -20,7 +20,7 @@ ModuleVersion = '2.5.0.1000'
20
20
GUID = ' 0558cc7e-71a6-4b08-b9be-341d22653128'
21
21
22
22
# Author of this module
23
- Author = ' VMware '
23
+ Author = ' Broadcom '
24
24
25
25
# Company or vendor of this module
26
26
CompanyName = ' Broadcom'
Original file line number Diff line number Diff line change @@ -4401,6 +4401,7 @@ Function checkVCFToken {
4401
4401
if ($expiryDetails.timeToExpiry.Hours -eq 0 -and $expiryDetails.timeToExpiry.Minutes -lt 2 ) {
4402
4402
Write-Output " API Access Token Expired. Requesting a new access token with current refresh token."
4403
4403
$headers = @ {" Accept" = " application/json" }
4404
+ $headers.Add (" Content-Type" , " application/json" )
4404
4405
$uri = " https://$sddcManager /v1/tokens/access-token/refresh"
4405
4406
$response = Invoke-RestMethod - Method PATCH - Uri $uri - Headers $headers - Body $refreshToken
4406
4407
$Global :accessToken = $response
You can’t perform that action at this time.
0 commit comments