Commit 929f88a
committed
flasharray: address review on login()
- Replace nested null-check of apiVersion with !apiVersionExplicit for clarity (sureshanaparti).
- Wrap vResp.close() in the api_version-discovery finally with its own try/catch; log any IOException at debug so a failed close does not mask a successful discovery.
- Wrap the explicit response.close() after the legacy username/password auth with try/catch for the same reason.
Signed-off-by: Eugenio Grosso <eugenio.grosso@gmail.com>1 parent 92a10fc commit 929f88a
1 file changed
Lines changed: 12 additions & 4 deletions
File tree
- plugins/storage/volume/flasharray/src/main/java/org/apache/cloudstack/storage/datastore/adapter/flasharray
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | | - | |
| 597 | + | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
706 | | - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
707 | 711 | | |
708 | 712 | | |
709 | 713 | | |
| |||
737 | 741 | | |
738 | 742 | | |
739 | 743 | | |
740 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
741 | 749 | | |
742 | 750 | | |
743 | 751 | | |
| |||
0 commit comments