Add S3 storage test to validator tests

This commit is contained in:
Joseph Schorr 2017-02-15 13:11:16 -05:00
parent 09b3cfd549
commit e76b95f0e6
2 changed files with 20 additions and 1 deletions

View file

@ -26,7 +26,8 @@ class StorageValidator(BaseValidator):
# Run setup on the driver if the read/write succeeded.
driver.setup()
except Exception as ex:
raise ConfigValidationException('Invalid storage configuration: %s: %s' % (name, str(ex)))
msg = str(ex).strip()
raise ConfigValidationException('Invalid storage configuration: %s: %s' % (name, msg))
def _get_storage_providers(config):