@@ -7,7 +7,7 @@ $volName="Fsx volume name, e.g. iscsiVol"
77$volSize = " volume size in GB, e.g 100"
88$drive_letter = " drive letter to use, e.g. d"
99
10- # Default value is fsxnIscsi1 , but you can change it to any other value according to yours FSx for ONTAP defintion
10+ # Default value is fsxadmin , but you can change it to any other value according to yours FSx for ONTAP defintion
1111$user = " fsxadmin"
1212# Default value is fsx, but you can change it to any other value according to yours FSx for ONTAP SVM name
1313$svm_name = " fsx"
@@ -239,7 +239,7 @@ if($runStep -eq 1) {
239239 catch {
240240 Write-Output " Failed to add igroup initiator, due to: $_ " >> $currentLogPath
241241 Write-Host " Failed to add igroup initiator, due to: $_ " - ForegroundColor Red
242- unInstall - printUninstallConnect $printUninstallConnect
242+ unInstall
243243 break
244244 }
245245
@@ -252,7 +252,7 @@ if($runStep -eq 1) {
252252 catch {
253253 Write-Output " Failed mapping LUN to igroup, due to: $_ " >> $currentLogPath
254254 Write-Host " Failed mapping LUN to igroup, due to: $_ " - ForegroundColor Red
255- unInstall - printUninstallConnect $printUninstallConnect
255+ unInstall
256256 break
257257 }
258258
@@ -270,7 +270,7 @@ if($runStep -eq 1) {
270270 catch {
271271 Write-Output " Failed to add new target, due to: $_ " >> $currentLogPath
272272 Write-Host " Failed to add new target, due to: $_ " - ForegroundColor Red
273- unInstall - printUninstallConnect $printUninstallConnect
273+ unInstall
274274 break
275275 }
276276
@@ -282,7 +282,7 @@ if($runStep -eq 1) {
282282 catch {
283283 Write-Output " Failed to connect to the new target, due to: $_ " >> $currentLogPath
284284 Write-Host " Failed to connect to the new target, due to: $_ " - ForegroundColor Red
285- unInstall - printUninstallConnect $printUninstallConnect
285+ unInstall
286286 break
287287 }
288288 @ (" Connect-NcController $ip -Credential $credntials -Vserver $svm_name -ErrorAction Stop" ) + (Get-Content $uninstallFile ) | Set-Content $uninstallFile
0 commit comments