diff options
author | Lucas Alvares Gomes <lucasagomes@gmail.com> | 2015-02-19 13:42:39 +0000 |
---|---|---|
committer | Lucas Alvares Gomes <lucasagomes@gmail.com> | 2015-03-04 16:34:17 +0000 |
commit | d23e0170de23cfb22eecb728105ec6e102185a1b (patch) | |
tree | 6809aee81e7e6dc541787694c6a8d92c29948ba8 /ironic_python_agent/errors.py | |
parent | f0e21a68fb3c2813634c6b15501050f2e9fde5c1 (diff) | |
download | ironic-python-agent-d23e0170de23cfb22eecb728105ec6e102185a1b.tar.gz |
Add the image extension (for local boot)
Initially this extension supports installing a bootloader so the user
image can boot from the local disk.
Change-Id: Ia588aafc240b55119c02f1254addc0cf796f88c5
Diffstat (limited to 'ironic_python_agent/errors.py')
-rw-r--r-- | ironic_python_agent/errors.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ironic_python_agent/errors.py b/ironic_python_agent/errors.py index 26dac154..ee2df169 100644 --- a/ironic_python_agent/errors.py +++ b/ironic_python_agent/errors.py @@ -294,3 +294,15 @@ class ISCSIError(RESTError): '{1}. stdout: {2}. stderr: {3}') details = details.format(error_msg, exit_code, stdout, stderr) super(ISCSIError, self).__init__(details) + + +class DeviceNotFound(NotFound): + """Error raised when the disk or partition to deploy the image onto is + not found. + """ + + message = ('Error finding the disk or partition device to deploy ' + 'the image onto.') + + def __init__(self, details): + super(DeviceNotFound, self).__init__(details) |