Skip to content

Commit

Permalink
#99 black fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gevorg-Khachatryaan authored and Gevorg-Khachatryaan committed Feb 17, 2022
1 parent 571e846 commit b8bf1c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
5 changes: 4 additions & 1 deletion plugins/module_utils/prism/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 1 addition & 3 deletions plugins/module_utils/prism/pbrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ def _get_default_spec(self):
{
"api_version": "3.1.0",
"metadata": {"kind": "routing_policy"},
"spec": {
"resources": {},
},
"spec": {"resources": {}},
}
)

Expand Down
9 changes: 2 additions & 7 deletions plugins/modules/ntnx_pbrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit b8bf1c5

Please sign in to comment.