Skip to content

Commit

Permalink
Adjusting code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePabloOcampo1212 committed Nov 18, 2024
1 parent f0c6a69 commit 7be47e5
Show file tree
Hide file tree
Showing 1,335 changed files with 13,640 additions and 7,349 deletions.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,5 @@
# -- Options for intersphinx extension ---------------------------------------

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'python': ('https://docs.python.org/2', None), 'ansible': ('https://docs.ansible.com/ansible/latest/', None)}
intersphinx_mapping = {'python': ('https://docs.python.org/2', None),
'ansible': ('https://docs.ansible.com/ansible/latest/', None)}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
2 changes: 1 addition & 1 deletion plugins/action/app_policy_default_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
2 changes: 1 addition & 1 deletion plugins/action/app_policy_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
2 changes: 1 addition & 1 deletion plugins/action/app_policy_intent_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
2 changes: 1 addition & 1 deletion plugins/action/app_policy_queuing_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
2 changes: 1 addition & 1 deletion plugins/action/app_policy_queuing_profile_count_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
2 changes: 1 addition & 1 deletion plugins/action/app_policy_queuing_profile_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
6 changes: 4 additions & 2 deletions plugins/action/app_policy_queuing_profile_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def exists(self):
if name_exists:
_id = prev_obj.get("id")
if id_exists and name_exists and o_id != _id:
raise InconsistentParameters("The 'id' and 'name' params don't refer to the same object")
raise InconsistentParameters(
"The 'id' and 'name' params don't refer to the same object")
if _id:
self.new_object.update(dict(id=_id))
it_exists = prev_obj is not None and isinstance(prev_obj, dict)
Expand Down Expand Up @@ -199,7 +200,8 @@ def delete(self):
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = False
Expand Down
3 changes: 2 additions & 1 deletion plugins/action/app_policy_queuing_profile_v1_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down
3 changes: 2 additions & 1 deletion plugins/action/app_policy_v1_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down
2 changes: 1 addition & 1 deletion plugins/action/application_policy_application_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down
2 changes: 1 addition & 1 deletion plugins/action/application_policy_application_set_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
8 changes: 5 additions & 3 deletions plugins/action/application_policy_application_set_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Copyright (c) 2021, Cisco Systems
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)

from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.plugins.action import ActionBase
Expand Down Expand Up @@ -112,7 +112,8 @@ def exists(self):
if name_exists:
_id = prev_obj.get("id")
if id_exists and name_exists and o_id != _id:
raise InconsistentParameters("The 'id' and 'name' params don't refer to the same object")
raise InconsistentParameters(
"The 'id' and 'name' params don't refer to the same object")
if _id:
self.new_object.update(dict(id=_id))
it_exists = prev_obj is not None and isinstance(prev_obj, dict)
Expand Down Expand Up @@ -173,7 +174,8 @@ def delete(self):
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = False
Expand Down
3 changes: 2 additions & 1 deletion plugins/action/application_policy_application_set_v2_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down
2 changes: 1 addition & 1 deletion plugins/action/application_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
2 changes: 1 addition & 1 deletion plugins/action/application_sets_count_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
3 changes: 2 additions & 1 deletion plugins/action/application_sets_count_v1_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down
2 changes: 1 addition & 1 deletion plugins/action/application_sets_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
6 changes: 4 additions & 2 deletions plugins/action/application_sets_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def exists(self):
if name_exists:
_id = prev_obj.get("id")
if id_exists and name_exists and o_id != _id:
raise InconsistentParameters("The 'id' and 'name' params don't refer to the same object")
raise InconsistentParameters(
"The 'id' and 'name' params don't refer to the same object")
if _id:
self.new_object.update(dict(id=_id))
it_exists = prev_obj is not None and isinstance(prev_obj, dict)
Expand Down Expand Up @@ -157,7 +158,8 @@ def delete(self):
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = False
Expand Down
3 changes: 2 additions & 1 deletion plugins/action/application_sets_v1_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down
2 changes: 1 addition & 1 deletion plugins/action/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
2 changes: 1 addition & 1 deletion plugins/action/applications_count_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
3 changes: 2 additions & 1 deletion plugins/action/applications_count_v1_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down
3 changes: 2 additions & 1 deletion plugins/action/applications_count_v2_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down
2 changes: 1 addition & 1 deletion plugins/action/applications_health_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
3 changes: 2 additions & 1 deletion plugins/action/applications_health_v1_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down
2 changes: 1 addition & 1 deletion plugins/action/applications_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
6 changes: 4 additions & 2 deletions plugins/action/applications_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def exists(self):
if name_exists:
_id = prev_obj.get("id")
if id_exists and name_exists and o_id != _id:
raise InconsistentParameters("The 'id' and 'name' params don't refer to the same object")
raise InconsistentParameters(
"The 'id' and 'name' params don't refer to the same object")
if _id:
self.new_object.update(dict(id=_id))
it_exists = prev_obj is not None and isinstance(prev_obj, dict)
Expand Down Expand Up @@ -193,7 +194,8 @@ def delete(self):
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = False
Expand Down
3 changes: 2 additions & 1 deletion plugins/action/applications_v1_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down
6 changes: 4 additions & 2 deletions plugins/action/applications_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def exists(self):
if name_exists:
_id = prev_obj.get("id")
if id_exists and name_exists and o_id != _id:
raise InconsistentParameters("The 'id' and 'name' params don't refer to the same object")
raise InconsistentParameters(
"The 'id' and 'name' params don't refer to the same object")
if _id:
self.new_object.update(dict(id=_id))
it_exists = prev_obj is not None and isinstance(prev_obj, dict)
Expand Down Expand Up @@ -212,7 +213,8 @@ def delete(self):
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = False
Expand Down
3 changes: 2 additions & 1 deletion plugins/action/applications_v2_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down
2 changes: 1 addition & 1 deletion plugins/action/areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
2 changes: 1 addition & 1 deletion plugins/action/areas_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args, **kwargs):

def run(self, tmp=None, task_vars=None):
module = ActionModule(self._task.args, self._play_context, self._task)
return module.run(tmp, task_vars)
return module.run(tmp, task_vars)
6 changes: 4 additions & 2 deletions plugins/action/areas_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def exists(self):
if name_exists:
_id = prev_obj.get("id")
if id_exists and name_exists and o_id != _id:
raise InconsistentParameters("The 'id' and 'name' params don't refer to the same object")
raise InconsistentParameters(
"The 'id' and 'name' params don't refer to the same object")
if _id:
self.new_object.update(dict(id=_id))
if _id:
Expand Down Expand Up @@ -181,7 +182,8 @@ def delete(self):
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = False
Expand Down
6 changes: 4 additions & 2 deletions plugins/action/areas_v1_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
raise AnsibleActionFail(
"ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
Expand Down Expand Up @@ -92,7 +93,8 @@ def run(self, tmp=None, task_vars=None):
if not id:
# NOTE: Does not have a get all method or it is in another action
response = None
dnac.object_modify_result(changed=False, result="Module does not have get all, check arguments of module")
dnac.object_modify_result(
changed=False, result="Module does not have get all, check arguments of module")
self._result.update(dict(dnac_response=response))
self._result.update(dnac.exit_json())
return self._result
Loading

0 comments on commit 7be47e5

Please sign in to comment.