Commit 50b560a
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 36a732b commit 50b560a
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 | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
| 596 | + | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
706 | 710 | | |
707 | 711 | | |
708 | 712 | | |
| |||
736 | 740 | | |
737 | 741 | | |
738 | 742 | | |
739 | | - | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
740 | 748 | | |
741 | 749 | | |
742 | 750 | | |
| |||
0 commit comments