From 1a43038bc225dd45995da1d747e9d951b59134b8 Mon Sep 17 00:00:00 2001 From: nilhase25 Date: Mon, 30 Oct 2017 16:26:34 +0000 Subject: [PATCH] Pep8 aos login.py (#32312) * fix pep8 issue in consul_kv.py * fix pep8 issue in aos_login.py --- lib/ansible/modules/network/aos/aos_login.py | 2 ++ test/sanity/pep8/legacy-files.txt | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/aos/aos_login.py b/lib/ansible/modules/network/aos/aos_login.py index 9fb1e5d8b80..8b2e9d13bcc 100644 --- a/lib/ansible/modules/network/aos/aos_login.py +++ b/lib/ansible/modules/network/aos/aos_login.py @@ -91,6 +91,7 @@ try: except ImportError: HAS_AOS_PYEZ = False + def aos_login(module): mod_args = module.params @@ -111,6 +112,7 @@ def aos_login(module): ansible_facts=dict(aos_session=aos.session), aos_session=dict(aos_session=aos.session)) + def main(): module = AnsibleModule( argument_spec=dict( diff --git a/test/sanity/pep8/legacy-files.txt b/test/sanity/pep8/legacy-files.txt index 1d314a4b7fb..ed5e0ae8b03 100644 --- a/test/sanity/pep8/legacy-files.txt +++ b/test/sanity/pep8/legacy-files.txt @@ -180,7 +180,6 @@ lib/ansible/modules/network/aos/aos_external_router.py lib/ansible/modules/network/aos/aos_ip_pool.py lib/ansible/modules/network/aos/aos_logical_device.py lib/ansible/modules/network/aos/aos_logical_device_map.py -lib/ansible/modules/network/aos/aos_login.py lib/ansible/modules/network/aos/aos_rack_type.py lib/ansible/modules/network/aos/aos_template.py lib/ansible/modules/network/asa/asa_acl.py