Skip to content

Commit 20606d3

Browse files
committed
Small fix to make passphrase mandatory for Invoke-SgwExpansion
1 parent 2d5ca0e commit 20606d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/StorageGRID-Webscale.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7359,7 +7359,7 @@ function Global:Invoke-SgwExpansion {
73597359
[parameter(Mandatory = $False,
73607360
Position = 1,
73617361
HelpMessage = "StorageGRID Profile to use for connection.")][Alias("Profile")][String]$ProfileName,
7362-
[parameter(Mandatory = $False,
7362+
[parameter(Mandatory = $True,
73637363
Position = 2,
73647364
HelpMessage = "StorageGRID Passphrase.")][String]$Passphrase
73657365
)
@@ -7394,7 +7394,7 @@ function Global:Invoke-SgwExpansion {
73947394
$Body = ConvertTo-Json -InputObject @{ passphrase = $Passphrase }
73957395

73967396
try {
7397-
$Response = Invoke-SgwRequest -WebSession $Server.Session -Method $Method -Uri $Uri -Headers $Server.Headers -SkipCertificateCheck:$Server.SkipCertificateCheck
7397+
$Response = Invoke-SgwRequest -WebSession $Server.Session -Method $Method -Uri $Uri -Headers $Server.Headers -Body $Body -SkipCertificateCheck:$Server.SkipCertificateCheck
73987398
}
73997399
catch {
74007400
$ResponseBody = ParseErrorForResponseBody $_

0 commit comments

Comments
 (0)