File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Management-Utilities/ec2-user-data-iscsi-create-and-mount Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments