From b8bf1c5092881376adc7af87b835ef4d7ad6a9a4 Mon Sep 17 00:00:00 2001 From: Gevorg-Khachatryaan Date: Thu, 17 Feb 2022 15:16:03 +0400 Subject: [PATCH] #99 black fixes --- plugins/module_utils/prism/groups.py | 5 ++++- plugins/module_utils/prism/pbrs.py | 4 +--- plugins/modules/ntnx_pbrs.py | 9 ++------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/plugins/module_utils/prism/groups.py b/plugins/module_utils/prism/groups.py index d2efe7eb2..1b654b90a 100644 --- a/plugins/module_utils/prism/groups.py +++ b/plugins/module_utils/prism/groups.py @@ -13,7 +13,10 @@ def __init__(self, module): super(Groups, self).__init__(module, resource_type=resource_type) def get_uuid(self, value, key="name", entity_type=""): - data = {"entity_type": entity_type, "filter_criteria": "{0}=={1}".format(key, value)} + data = { + "entity_type": entity_type, + "filter_criteria": "{0}=={1}".format(key, value), + } resp, status = self.list(data, use_base_url=True) if resp.get("group_results"): return resp["group_results"][0]["entity_results"][0]["entity_id"] diff --git a/plugins/module_utils/prism/pbrs.py b/plugins/module_utils/prism/pbrs.py index 9174bf52b..7df46f2d3 100644 --- a/plugins/module_utils/prism/pbrs.py +++ b/plugins/module_utils/prism/pbrs.py @@ -30,9 +30,7 @@ def _get_default_spec(self): { "api_version": "3.1.0", "metadata": {"kind": "routing_policy"}, - "spec": { - "resources": {}, - }, + "spec": {"resources": {}}, } ) diff --git a/plugins/modules/ntnx_pbrs.py b/plugins/modules/ntnx_pbrs.py index 3e974c320..1cfa65af7 100644 --- a/plugins/modules/ntnx_pbrs.py +++ b/plugins/modules/ntnx_pbrs.py @@ -420,10 +420,7 @@ def get_module_spec(): route_spec = dict( any=dict(type="bool"), external=dict(type="bool"), - network=dict( - type="dict", - options=network_spec, - ), + network=dict(type="dict", options=network_spec), ) tcp_and_udp_spec = dict( @@ -442,9 +439,7 @@ def get_module_spec(): ) action_spec = dict( - deny=dict(type="bool"), - allow=dict(type="bool"), - reroute=dict(type="str"), + deny=dict(type="bool"), allow=dict(type="bool"), reroute=dict(type="str") ) module_args = dict(