Merge pull request #2833 from coreos-inc/fix_s3_storage_test

Print only first line of s3 error message
This commit is contained in:
Antoine Legrand 2017-07-27 18:18:58 +02:00 committed by GitHub
commit 67e7e8274b

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))