mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Fix superclass syntax for < Python3
This commit is contained in:
@@ -422,12 +422,12 @@ class TowerModule(AnsibleModule):
|
|||||||
def fail_json(self, **kwargs):
|
def fail_json(self, **kwargs):
|
||||||
# Try to logout if we are authenticated
|
# Try to logout if we are authenticated
|
||||||
self.logout()
|
self.logout()
|
||||||
super().fail_json(**kwargs)
|
super(TowerModule, self).fail_json(**kwargs)
|
||||||
|
|
||||||
def exit_json(self, **kwargs):
|
def exit_json(self, **kwargs):
|
||||||
# Try to logout if we are authenticated
|
# Try to logout if we are authenticated
|
||||||
self.logout()
|
self.logout()
|
||||||
super().exit_json(**kwargs)
|
super(TowerModule, self).exit_json(**kwargs)
|
||||||
|
|
||||||
def is_job_done(self, job_status):
|
def is_job_done(self, job_status):
|
||||||
if job_status in ['new', 'pending', 'waiting', 'running']:
|
if job_status in ['new', 'pending', 'waiting', 'running']:
|
||||||
|
|||||||
Reference in New Issue
Block a user