summaryrefslogtreecommitdiff
path: root/ironic_python_agent/errors.py
diff options
context:
space:
mode:
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)