Change in ovirt-iso-uploader[ovirt-iso-uploader-3.5]: error handling: handle invalid host

sbonazzo at redhat.com sbonazzo at redhat.com
Tue Aug 12 13:35:08 UTC 2014


Sandro Bonazzola has submitted this change and it was merged.

Change subject: error handling: handle invalid host
......................................................................


error handling: handle invalid host

previously if an invalid host was specified an error like

ERROR: 'NoneType' object is not iterable

was printed.
Now a more explanatory error is showed:

ERROR: Unable to connect to REST API.  Message: The host name
"localhost" contained in the URL doesn't match any of the names in the
server certificate.
ERROR: Unable to get ISO domain data

Change-Id: I86ff1d2bcff923c76176554ae73beb47caa3d633
Bug-Url: https://bugzilla.redhat.com/1110756
Signed-off-by: Sandro Bonazzola <sbonazzo at redhat.com>
(cherry picked from commit a6b721e0e9164dfadccd3961467d1b65c8994554)
---
M src/__main__.py
1 file changed, 7 insertions(+), 3 deletions(-)

Approvals:
  Sandro Bonazzola: Verified; Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/31404
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I86ff1d2bcff923c76176554ae73beb47caa3d633
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-iso-uploader
Gerrit-Branch: ovirt-iso-uploader-3.5
Gerrit-Owner: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list