Skip to content

Commit bcd06a8

Browse files
committed
v1.4.4.1
Fix for error on Linux hosts
1 parent eedb0b3 commit bcd06a8

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

PureStorage.Pure1.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Created by: Cody Hosterman
55
Organization: Pure Storage, Inc.
66
Filename: Cody.PureStorage.Pure1.psd1
7-
Version: 1.4.4.0
7+
Version: 1.4.4.1
88
Copyright: 2021 Pure Storage, Inc.
99
-------------------------------------------------------------------------
1010
Module Name: PureStoragePure1PowerShell
@@ -30,7 +30,7 @@
3030
RootModule = 'PureStorage.Pure1.psm1'
3131

3232
# Version number of this module; major.minor[.build[.revision]]
33-
ModuleVersion = '1.4.4.0'
33+
ModuleVersion = '1.4.4.1'
3434

3535
# ID used to uniquely identify this module
3636
GUID = '65867a33-8c09-4651-8043-96c2f7ca2893'

PureStorage.Pure1.psm1

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -729,12 +729,9 @@ function New-PureOneJwt {
729729
$DecryptedRsaPassword = ConvertFrom-SecureString $RsaPassword -AsPlainText
730730
set-content -value $tosign -Path ./PureOneHeader.txt -NoNewline
731731
Start-Process -FilePath ./openssl -ArgumentList "dgst -binary -sha256 -sign $($PrivateKeyFileLocation) -passin pass:$($DecryptedRsaPassword) -out ./PureOneSignedHeader.txt ./PureOneHeader.txt"
732+
#file lock often still exists, wait for it to release.
733+
start-sleep 1
732734
$signature = openssl base64 -in ./PureOneSignedHeader.txt
733-
if ($null -eq $signature)
734-
{
735-
#sometimes this needs retried, honestly not sure why.
736-
$signature = openssl base64 -in ./PureOneSignedHeader.txt
737-
}
738735
$signature = $signature -replace '\+','-' -replace '/','_' -replace '='
739736
Remove-Item -Path ./PureOneSignedHeader.txt
740737
Remove-Item -Path ./PureOneHeader.txt

0 commit comments

Comments
 (0)