-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error handling for get cloud image calls #81
Conversation
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
try { | ||
connection = (HttpURLConnection) requestUri.toURL().openConnection(); | ||
connection.setRequestMethod(HttpMethod.GET.toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor comment. At this point, we can check whether the connection is null, before going further with a null connection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with a minor comment
* intoducing unique IAAS infrastracture for cloud providers * processing IAAS get cloud images error so it return the Internal Server Error * remove authorisation exception (cherry picked from commit bdb072f)
What is resolved:
-> when the images can't be retrived the error is logged and send back to caller - previously it was retrurning empty set or even images from another clouds
-> cloud infrastructures are now created with unique infrastructure ID when IAAS connector is called to create them
Expected behavior with problematic clouds: