Simone Tiraboschi has uploaded a new change for review. Change subject: packaging: setup: more descriptive error message for invalid storage domain ......................................................................
packaging: setup: more descriptive error message for invalid storage domain Making the invalid storage domain error message a bit more descriptive Change-Id: I45012fee44304f9bf4fe20ff2b15c32106fcfdc3 Bug-Url: https://bugzilla.redhat.com/1201196 Signed-off-by: Simone Tiraboschi <[email protected]> --- M src/plugins/ovirt-hosted-engine-setup/storage/storage.py 1 file changed, 8 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup refs/changes/48/38648/1 diff --git a/src/plugins/ovirt-hosted-engine-setup/storage/storage.py b/src/plugins/ovirt-hosted-engine-setup/storage/storage.py index 2044599..30583ee 100644 --- a/src/plugins/ovirt-hosted-engine-setup/storage/storage.py +++ b/src/plugins/ovirt-hosted-engine-setup/storage/storage.py @@ -384,7 +384,14 @@ ] ) if valid[0] != 0: - raise RuntimeError(_('Invalid Storage Domain')) + raise RuntimeError( + _( + 'Invalid Storage Domain: {message}\n' + 'Please clean the storage device and try again' + ).format( + message=valid[1], + ) + ) def _getStorageDomainsList(self, spUUID=None): if not spUUID: -- To view, visit https://gerrit.ovirt.org/38648 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I45012fee44304f9bf4fe20ff2b15c32106fcfdc3 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-setup Gerrit-Branch: master Gerrit-Owner: Simone Tiraboschi <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
