diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-01-15 18:32:11 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-01-15 18:32:11 +0000 |
commit | b51b30340371d0dd0ef305895b2143342a873a15 (patch) | |
tree | 7c959e00fc7d7618eb653c49378efaca6f53c539 /ironic_python_agent/errors.py | |
parent | c35af553549c22b6e603cdfdc0288059a38f9224 (diff) | |
parent | 49d547d97eedda85ef422078f38f023472a73dd7 (diff) | |
download | ironic-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.py | 7 |
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) |