diff options
author | John Westcott IV <john.westcott.iv@redhat.com> | 2020-08-06 20:57:30 +0200 |
---|---|---|
committer | John Westcott IV <john.westcott.iv@redhat.com> | 2020-08-19 20:12:50 +0200 |
commit | 8688740e933e5875d6e9298636f406db9caf2f42 (patch) | |
tree | 168b954d2d3710fd829f9dad5df6ba4a8d52b981 /awx_collection | |
parent | Fixing linting issues (diff) | |
download | awx-8688740e933e5875d6e9298636f406db9caf2f42.tar.xz awx-8688740e933e5875d6e9298636f406db9caf2f42.zip |
Fixing ansible pep8 issues
Diffstat (limited to 'awx_collection')
-rw-r--r-- | awx_collection/plugins/module_utils/tower_api.py | 4 | ||||
-rw-r--r-- | awx_collection/plugins/module_utils/tower_module.py | 1 | ||||
-rw-r--r-- | awx_collection/plugins/modules/tower_import.py | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/awx_collection/plugins/module_utils/tower_api.py b/awx_collection/plugins/module_utils/tower_api.py index 089273bff1..6b5ed87531 100644 --- a/awx_collection/plugins/module_utils/tower_api.py +++ b/awx_collection/plugins/module_utils/tower_api.py @@ -10,6 +10,7 @@ from ansible.module_utils.six.moves.http_cookiejar import CookieJar import re from json import loads, dumps + class TowerAPIModule(TowerModule): # TODO: Move the collection version check into tower_module.py # This gets set by the make process so whatever is in here is irrelevant @@ -27,7 +28,8 @@ class TowerAPIModule(TowerModule): def __init__(self, argument_spec, direct_params=None, error_callback=None, warn_callback=None, **kwargs): kwargs['supports_check_mode'] = True - super(TowerAPIModule, self).__init__(argument_spec=argument_spec, direct_params=direct_params, error_callback=error_callback, warn_callback=warn_callback, **kwargs) + super(TowerAPIModule, self).__init__(argument_spec=argument_spec, direct_params=direct_params, + error_callback=error_callback, warn_callback=warn_callback, **kwargs) self.session = Request(cookies=CookieJar(), validate_certs=self.verify_ssl) @staticmethod diff --git a/awx_collection/plugins/module_utils/tower_module.py b/awx_collection/plugins/module_utils/tower_module.py index 5d5b4d4239..553a35248c 100644 --- a/awx_collection/plugins/module_utils/tower_module.py +++ b/awx_collection/plugins/module_utils/tower_module.py @@ -215,7 +215,6 @@ class TowerModule(AnsibleModule): else: setattr(self, honorred_setting, config_data[honorred_setting]) - def logout(self): # This method is intended to be overridden pass diff --git a/awx_collection/plugins/modules/tower_import.py b/awx_collection/plugins/modules/tower_import.py index 37de035123..a39a98a5e3 100644 --- a/awx_collection/plugins/modules/tower_import.py +++ b/awx_collection/plugins/modules/tower_import.py @@ -62,6 +62,7 @@ try: except ImportError: HAS_EXPORTABLE_RESOURCES = False + def main(): argument_spec = dict( assets=dict(type='dict', required=True) |