summaryrefslogtreecommitdiff
path: root/ironic_python_agent/errors.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-01-15 18:32:11 +0000
committerGerrit Code Review <review@openstack.org>2015-01-15 18:32:11 +0000
commitb51b30340371d0dd0ef305895b2143342a873a15 (patch)
tree7c959e00fc7d7618eb653c49378efaca6f53c539 /ironic_python_agent/errors.py
parentc35af553549c22b6e603cdfdc0288059a38f9224 (diff)
parent49d547d97eedda85ef422078f38f023472a73dd7 (diff)
downloadironic-python-agent-b51b30340371d0dd0ef305895b2143342a873a15.tar.gz
Merge "HardwareManagerMethodNotFound requires a method"
Diffstat (limited to 'ironic_python_agent/errors.py')
-rw-r--r--ironic_python_agent/errors.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/ironic_python_agent/errors.py b/ironic_python_agent/errors.py
index 5a769f7d..0b46465f 100644
--- a/ironic_python_agent/errors.py
+++ b/ironic_python_agent/errors.py
@@ -266,11 +266,8 @@ class HardwareManagerMethodNotFound(RESTError):
msg = 'No HardwareManager found to handle method'
message = msg + '.'
- def __init__(self, method=None):
- if method is not None:
- self.details = (self.msg + ': "{0}".').format(method)
- else:
- self.details = self.message
+ def __init__(self, method):
+ self.details = (self.msg + ': "{0}".').format(method)
super(HardwareManagerMethodNotFound, self).__init__(self.details)