Add noqa directive for super calls

This commit is contained in:
beeankha
2020-08-25 15:49:20 -04:00
parent ef7a74c4a3
commit 4bc1a128ec
6 changed files with 11 additions and 11 deletions

View File

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