diff options
| author | Galyna Zholtkevych <gzholtkevych@mirantis.com> | 2017-03-03 13:33:21 +0200 |
|---|---|---|
| committer | Galyna Zholtkevych <galynazholtkevych1991@gmail.com> | 2017-03-10 19:16:07 +0000 |
| commit | 9c2d0cdd85695a6845c359ea28e7197f86936329 (patch) | |
| tree | 885413820b045a0a4d2083262583fa84332bc3da /ironic_python_agent/errors.py | |
| parent | 8e1226e732c82d263a681223069cb7fe6c050854 (diff) | |
| download | ironic-python-agent-9c2d0cdd85695a6845c359ea28e7197f86936329.tar.gz | |
Correct failure message output when downloading
This fixes unreadable output on download image failure.
Adding new instance variable to exception `ImageDownloadError` class
to avoid redundant logs.
Change-Id: I51782abd572588adfc62745eeab9c559eb8346dd
Closes-Bug: #1657691
Diffstat (limited to 'ironic_python_agent/errors.py')
| -rw-r--r-- | ironic_python_agent/errors.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ironic_python_agent/errors.py b/ironic_python_agent/errors.py index 5536e0fd..2c49ffc8 100644 --- a/ironic_python_agent/errors.py +++ b/ironic_python_agent/errors.py @@ -143,6 +143,7 @@ class ImageDownloadError(RESTError): def __init__(self, image_id, msg): details = 'Download of image id {} failed: {}'.format(image_id, msg) + self.secondary_message = msg super(ImageDownloadError, self).__init__(details) |
