Skip to content

Commit b89f853

Browse files
authored
Update windows_userData.ps1
Fix linter warnings
1 parent 74441bf commit b89f853

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Management-Utilities/ec2-user-data-iscsi-create-and-mount/windows_userData.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $uninstallFile="C:\Users\Administrator\uninstall.ps1"
3434
$password=Get-SECSecretValue -SecretId "$secretId" -Select "SecretString"
3535

3636

37-
if( $password -eq $null -or $password -eq "" ) {
37+
if( $null -eq $password -or $password -eq "" ) {
3838
Write-Output "Failed to get data from Secrets Manager, exiting..." >> $currentLogPath
3939
write-host "Failed to get data from Secrets Manager, exiting..." -ForegroundColor Red
4040
EXIT 1
@@ -171,7 +171,7 @@ if($runStep -eq 1) {
171171
$PWord = ConvertTo-SecureString -String $password -AsPlainText -Force
172172
$credntials = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user, $PWord
173173
try {
174-
$controller = Connect-NcController $ip -Credential $credntials -Vserver $svm_name -ErrorAction Stop
174+
Connect-NcController $ip -Credential $credntials -Vserver $svm_name -ErrorAction Stop
175175
}
176176
catch {
177177
Write-Output "Failed connect to FSXn filesystem, due to: $_" >> $currentLogPath

0 commit comments

Comments
 (0)