mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Better boto elb error message.
Based on how boto handle exceptions [ references: https://github.com/boto/boto/blob/develop/boto/exception.py#L77 ] salt log should be well formated now. Fixes #30840.
This commit is contained in:
parent
4da04f82c8
commit
3561e8c19b
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ def create(name, availability_zones, listeners=None, subnets=None,
|
|||
return False
|
||||
except boto.exception.BotoServerError as error:
|
||||
log.debug(error)
|
||||
msg = 'Failed to create ELB {0}: {1}'.format(name, error)
|
||||
msg = 'Failed to create ELB {0}: {1}: {2}'.format(name, error.error_code, error.message)
|
||||
log.error(msg)
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue