Fix superclass syntax for < Python3

This commit is contained in:
beeankha
2020-01-28 15:39:53 -05:00
parent e028ed878e
commit 9fa5942791

View File

@@ -422,12 +422,12 @@ class TowerModule(AnsibleModule):
def fail_json(self, **kwargs):
# Try to logout if we are authenticated
self.logout()
super().fail_json(**kwargs)
super(TowerModule, self).fail_json(**kwargs)
def exit_json(self, **kwargs):
# Try to logout if we are authenticated
self.logout()
super().exit_json(**kwargs)
super(TowerModule, self).exit_json(**kwargs)
def is_job_done(self, job_status):
if job_status in ['new', 'pending', 'waiting', 'running']: