Merge "HardwareManagerMethodNotFound requires a method"

This commit is contained in:
Jenkins 2015-01-15 18:32:11 +00:00 committed by Gerrit Code Review
commit b51b303403

@ -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)