diff options
author | John R Barker <john@johnrbarker.com> | 2017-12-08 03:29:21 +0000 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2017-12-07 19:29:21 -0800 |
commit | 18529a275bb7050d7d246d01ec95518a4f5c07e1 (patch) | |
tree | 28574ea8c6326ef7c0552682d446f285b9596072 /lib/ansible/modules/network/aos | |
parent | bcd189509e0ce627677e30e4c2756633c1e33de2 (diff) | |
download | ansible-18529a275bb7050d7d246d01ec95518a4f5c07e1.tar.gz |
Bulk pep8 fixes - hand crafted (#33690)
* Bulk pep8 fixes - hand crafted
Fix by hand the remaining issues that autopep8 couldn't
* Next batch of hand crafted pep8 fixes
* Ignore W503
https://github.com/PyCQA/pycodestyle/pull/499
* Revert more of W503
Diffstat (limited to 'lib/ansible/modules/network/aos')
8 files changed, 34 insertions, 34 deletions
diff --git a/lib/ansible/modules/network/aos/aos_blueprint.py b/lib/ansible/modules/network/aos/aos_blueprint.py index f61f9ba203..df74271854 100644 --- a/lib/ansible/modules/network/aos/aos_blueprint.py +++ b/lib/ansible/modules/network/aos/aos_blueprint.py @@ -245,9 +245,9 @@ def aos_blueprint(module): elif margs['id'] is not None: item_id = margs['id'] - #---------------------------------------------------- + # ---------------------------------------------------- # Find Object if available based on ID or Name - #---------------------------------------------------- + # ---------------------------------------------------- try: my_blueprint = find_collection_item(aos.Blueprints, item_name=item_name, @@ -255,9 +255,9 @@ def aos_blueprint(module): except: module.fail_json(msg="Unable to find the Blueprint based on name or ID, something went wrong") - #---------------------------------------------------- + # ---------------------------------------------------- # Proceed based on State value - #---------------------------------------------------- + # ---------------------------------------------------- if margs['state'] == 'absent': ensure_absent(module, aos, my_blueprint) diff --git a/lib/ansible/modules/network/aos/aos_device.py b/lib/ansible/modules/network/aos/aos_device.py index 717083d774..885e505a13 100644 --- a/lib/ansible/modules/network/aos/aos_device.py +++ b/lib/ansible/modules/network/aos/aos_device.py @@ -158,9 +158,9 @@ def aos_device(module): elif margs['name'] is not None: item_name = margs['name'] - #---------------------------------------------------- + # ---------------------------------------------------- # Find Object if available based on ID or Name - #---------------------------------------------------- + # ---------------------------------------------------- dev = find_collection_item(aos.Devices, item_name=item_name, item_id=item_id) @@ -168,9 +168,9 @@ def aos_device(module): if dev.exists is False: module.fail_json(msg="unknown device '%s'" % margs['name']) - #---------------------------------------------------- + # ---------------------------------------------------- # Valid device state for reference - #---------------------------------------------------- + # ---------------------------------------------------- # DEVICE_STATE_IS_ACTIVE = 1; # DEVICE_STATE_IS_READY = 2; # DEVICE_STATE_IS_NOCOMMS = 3; @@ -184,9 +184,9 @@ def aos_device(module): # DEVICE_STATE_OOS_MAINT = 11; # DEVICE_STATE_OOS_REBOOTING = 12; # DEVICE_STATE_ERROR = 13; - #---------------------------------------------------- + # ---------------------------------------------------- # State == Normal - #---------------------------------------------------- + # ---------------------------------------------------- if margs['state'] == 'normal': aos_device_normal(module, aos, dev) diff --git a/lib/ansible/modules/network/aos/aos_external_router.py b/lib/ansible/modules/network/aos/aos_external_router.py index e693811aab..37bb041e11 100644 --- a/lib/ansible/modules/network/aos/aos_external_router.py +++ b/lib/ansible/modules/network/aos/aos_external_router.py @@ -288,9 +288,9 @@ def ext_router(module): elif margs['id'] is not None: item_id = margs['id'] - #---------------------------------------------------- + # ---------------------------------------------------- # Find Object if available based on ID or Name - #---------------------------------------------------- + # ---------------------------------------------------- try: my_ext_router = find_collection_item(aos.ExternalRouters, item_name=item_name, @@ -298,9 +298,9 @@ def ext_router(module): except: module.fail_json(msg="Unable to find the IP Pool based on name or ID, something went wrong") - #---------------------------------------------------- + # ---------------------------------------------------- # Proceed based on State value - #---------------------------------------------------- + # ---------------------------------------------------- if margs['state'] == 'absent': ext_router_absent(module, aos, my_ext_router) diff --git a/lib/ansible/modules/network/aos/aos_ip_pool.py b/lib/ansible/modules/network/aos/aos_ip_pool.py index 41c7e16754..82fac9d820 100644 --- a/lib/ansible/modules/network/aos/aos_ip_pool.py +++ b/lib/ansible/modules/network/aos/aos_ip_pool.py @@ -300,9 +300,9 @@ def ip_pool(module): elif margs['id'] is not None: item_id = margs['id'] - #---------------------------------------------------- + # ---------------------------------------------------- # Find Object if available based on ID or Name - #---------------------------------------------------- + # ---------------------------------------------------- try: my_pool = find_collection_item(aos.IpPools, item_name=item_name, @@ -310,9 +310,9 @@ def ip_pool(module): except: module.fail_json(msg="Unable to find the IP Pool based on name or ID, something went wrong") - #---------------------------------------------------- + # ---------------------------------------------------- # Proceed based on State value - #---------------------------------------------------- + # ---------------------------------------------------- if margs['state'] == 'absent': ip_pool_absent(module, aos, my_pool) diff --git a/lib/ansible/modules/network/aos/aos_logical_device.py b/lib/ansible/modules/network/aos/aos_logical_device.py index 76412dfc33..0baaeaf216 100644 --- a/lib/ansible/modules/network/aos/aos_logical_device.py +++ b/lib/ansible/modules/network/aos/aos_logical_device.py @@ -214,16 +214,16 @@ def logical_device(module): elif margs['id'] is not None: item_id = margs['id'] - #---------------------------------------------------- + # ---------------------------------------------------- # Find Object if available based on ID or Name - #---------------------------------------------------- + # ---------------------------------------------------- my_logical_dev = find_collection_item(aos.LogicalDevices, item_name=item_name, item_id=item_id) - #---------------------------------------------------- + # ---------------------------------------------------- # Proceed based on State value - #---------------------------------------------------- + # ---------------------------------------------------- if margs['state'] == 'absent': logical_device_absent(module, aos, my_logical_dev) diff --git a/lib/ansible/modules/network/aos/aos_logical_device_map.py b/lib/ansible/modules/network/aos/aos_logical_device_map.py index 44d089b784..d2bc96ff1b 100644 --- a/lib/ansible/modules/network/aos/aos_logical_device_map.py +++ b/lib/ansible/modules/network/aos/aos_logical_device_map.py @@ -234,9 +234,9 @@ def logical_device_map(module): elif margs['id'] is not None: item_id = margs['id'] - #---------------------------------------------------- + # ---------------------------------------------------- # Find Object if available based on ID or Name - #---------------------------------------------------- + # ---------------------------------------------------- try: my_log_dev_map = find_collection_item(aos.LogicalDeviceMaps, item_name=item_name, @@ -244,9 +244,9 @@ def logical_device_map(module): except: module.fail_json(msg="Unable to find the Logical Device Map based on name or ID, something went wrong") - #---------------------------------------------------- + # ---------------------------------------------------- # Proceed based on State value - #---------------------------------------------------- + # ---------------------------------------------------- if margs['state'] == 'absent': logical_device_map_absent(module, aos, my_log_dev_map) diff --git a/lib/ansible/modules/network/aos/aos_rack_type.py b/lib/ansible/modules/network/aos/aos_rack_type.py index 3be22595c1..b8dea17312 100644 --- a/lib/ansible/modules/network/aos/aos_rack_type.py +++ b/lib/ansible/modules/network/aos/aos_rack_type.py @@ -211,16 +211,16 @@ def rack_type(module): elif margs['id'] is not None: item_id = margs['id'] - #---------------------------------------------------- + # ---------------------------------------------------- # Find Object if available based on ID or Name - #---------------------------------------------------- + # ---------------------------------------------------- my_rack_type = find_collection_item(aos.RackTypes, item_name=item_name, item_id=item_id) - #---------------------------------------------------- + # ---------------------------------------------------- # Proceed based on State value - #---------------------------------------------------- + # ---------------------------------------------------- if margs['state'] == 'absent': rack_type_absent(module, aos, my_rack_type) diff --git a/lib/ansible/modules/network/aos/aos_template.py b/lib/ansible/modules/network/aos/aos_template.py index c87dee2ca1..a8b0c3a6fe 100644 --- a/lib/ansible/modules/network/aos/aos_template.py +++ b/lib/ansible/modules/network/aos/aos_template.py @@ -225,9 +225,9 @@ def aos_template(module): elif margs['id'] is not None: item_id = margs['id'] - #---------------------------------------------------- + # ---------------------------------------------------- # Find Object if available based on ID or Name - #---------------------------------------------------- + # ---------------------------------------------------- try: my_template = find_collection_item(aos.DesignTemplates, item_name=item_name, @@ -235,9 +235,9 @@ def aos_template(module): except: module.fail_json(msg="Unable to find the IP Pool based on name or ID, something went wrong") - #---------------------------------------------------- + # ---------------------------------------------------- # Proceed based on State value - #---------------------------------------------------- + # ---------------------------------------------------- if margs['state'] == 'absent': template_absent(module, aos, my_template) |