Don't pass self to a bound method
getattr(self, 'file') returns a bound method. That bound method doesn't need a self parameter. Change-Id: I798fa960708fa9661193ff8b6056a073ebd82dca
This commit is contained in:
parent
bbaf222aa4
commit
14606de330
|
@ -50,7 +50,7 @@ class ActionModule(normal.ActionModule):
|
|||
handler_name = 'handle_{action}'.format(action=self._task.action)
|
||||
handler = getattr(self, handler_name, None)
|
||||
if handler:
|
||||
handler(self)
|
||||
handler()
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in New Issue