Skip to content

Commit 09669ac

Browse files
akinrosslhercot
authored andcommitted
[ignore] change fail messages to avoid backslash even though black created it
1 parent 9af097a commit 09669ac

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

plugins/modules/aci_interface_policy_leaf_policy_group.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,9 @@ def main():
477477

478478
aci = ACIModule(module)
479479
if lag_type == "leaf" and port_channel_policy is not None:
480-
aci.fail_json("port_channel_policy is not a valid parameter for leaf\
481-
(leaf access port policy group), if used\
482-
assign null to it (port_channel_policy: null).")
480+
aci.fail_json(
481+
"port_channel_policy is not a valid parameter for leaf (leaf access port policy group), if used assign null to it (port_channel_policy: null)."
482+
)
483483
invalid_parameters = {
484484
"transceiver_policy": "transceiver_policy is not a valid parameter for link/node (Port Channel, Virtual Port Channel),\
485485
if used assign null to it (transceiver_policy: null).",

plugins/modules/aci_static_binding_to_epg.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,7 @@ def main():
372372
leafs = leafs[0]
373373
elif len(leafs) == 2:
374374
if interface_type not in ["vpc", "fex_vpc"]:
375-
aci.fail_json(msg='The interface_types "switch_port", "port_channel", and "fex" \
376-
do not support using multiple leafs for a single binding')
375+
aci.fail_json(msg='The interface_types "switch_port", "port_channel", and "fex" do not support using multiple leafs for a single binding')
377376
leafs = "-".join(leafs)
378377
else:
379378
aci.fail_json(msg='The "leafs" parameter must not have more than 2 entries')
@@ -390,8 +389,7 @@ def main():
390389
extpaths = extpaths[0]
391390
elif len(extpaths) == 2:
392391
if interface_type != "fex_vpc":
393-
aci.fail_json(msg='The interface_types "fex" \
394-
and "fex_port_channel" do not support using multiple extpaths for a single binding')
392+
aci.fail_json(msg='The interface_types "fex" and "fex_port_channel" do not support using multiple extpaths for a single binding')
395393
extpaths = "-".join(extpaths)
396394
else:
397395
aci.fail_json(msg='The "extpaths" parameter must not have more than 2 entries')

0 commit comments

Comments
 (0)