Print only first line of s3 error message

This commit is contained in:
Antoine Legrand 2017-07-27 18:05:06 +02:00
parent 78f77017e8
commit 2d60ad71b6

View file

@ -26,7 +26,7 @@ class StorageValidator(BaseValidator):
# Run setup on the driver if the read/write succeeded.
driver.setup()
except Exception as ex:
msg = str(ex).strip()
msg = str(ex).strip().split("\n")[0]
raise ConfigValidationException('Invalid storage configuration: %s: %s' % (name, msg))