mirror of
https://github.com/ansible/awx.git
synced 2026-02-04 02:58:13 -03:30
Add noqa directive for super calls
This commit is contained in:
@@ -71,7 +71,7 @@ class TowerModule(AnsibleModule):
|
||||
if direct_params is not None:
|
||||
self.params = direct_params
|
||||
else:
|
||||
super().__init__(argument_spec=full_argspec, **kwargs)
|
||||
super(TowerModule, self).__init__(argument_spec=full_argspec, **kwargs) # noqa
|
||||
|
||||
self.load_config_files()
|
||||
|
||||
@@ -225,15 +225,15 @@ class TowerModule(AnsibleModule):
|
||||
if self.error_callback:
|
||||
self.error_callback(**kwargs)
|
||||
else:
|
||||
super().fail_json(**kwargs)
|
||||
super(TowerModule, self).fail_json(**kwargs) # noqa
|
||||
|
||||
def exit_json(self, **kwargs):
|
||||
# Try to log out if we are authenticated
|
||||
self.logout()
|
||||
super().exit_json(**kwargs)
|
||||
super(TowerModule, self).exit_json(**kwargs) # noqa
|
||||
|
||||
def warn(self, warning):
|
||||
if self.warn_callback is not None:
|
||||
self.warn_callback(warning)
|
||||
else:
|
||||
super().warn(warning)
|
||||
super(TowerModule, self).warn(warning) # noqa
|
||||
|
||||
Reference in New Issue
Block a user