Merge pull request #2833 from coreos-inc/fix_s3_storage_test
Print only first line of s3 error message
This commit is contained in:
commit
67e7e8274b
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
||||
|
|
Reference in a new issue