mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Fixing ansible pep8 issues
This commit is contained in:
@@ -10,6 +10,7 @@ from ansible.module_utils.six.moves.http_cookiejar import CookieJar
|
|||||||
import re
|
import re
|
||||||
from json import loads, dumps
|
from json import loads, dumps
|
||||||
|
|
||||||
|
|
||||||
class TowerAPIModule(TowerModule):
|
class TowerAPIModule(TowerModule):
|
||||||
# TODO: Move the collection version check into tower_module.py
|
# TODO: Move the collection version check into tower_module.py
|
||||||
# This gets set by the make process so whatever is in here is irrelevant
|
# 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):
|
def __init__(self, argument_spec, direct_params=None, error_callback=None, warn_callback=None, **kwargs):
|
||||||
kwargs['supports_check_mode'] = True
|
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)
|
self.session = Request(cookies=CookieJar(), validate_certs=self.verify_ssl)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@@ -215,7 +215,6 @@ class TowerModule(AnsibleModule):
|
|||||||
else:
|
else:
|
||||||
setattr(self, honorred_setting, config_data[honorred_setting])
|
setattr(self, honorred_setting, config_data[honorred_setting])
|
||||||
|
|
||||||
|
|
||||||
def logout(self):
|
def logout(self):
|
||||||
# This method is intended to be overridden
|
# This method is intended to be overridden
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
HAS_EXPORTABLE_RESOURCES = False
|
HAS_EXPORTABLE_RESOURCES = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
assets=dict(type='dict', required=True)
|
assets=dict(type='dict', required=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user