Skip to content

Commit bcc3a08

Browse files
committed
Improved error message and resolved sanity errors.
1 parent 90c1b1d commit bcc3a08

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plugins/modules/lan_automation_workflow_manager.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,8 +1648,12 @@ def extract_port_channel_config_from_catalyst_center(self):
16481648
"DEBUG",
16491649
)
16501650
self.msg = (
1651-
f"No existing Port Channel configuration found with the provided port_channel_number: {port_channel_number}. "
1652-
"If you want to create a new Port Channel, please remove the port_channel_number parameter from your playbook configuration and try again."
1651+
"No existing Port Channel configuration found with the provided "
1652+
f"port_channel_number: {port_channel_number}. When both port_channel_number and links "
1653+
"are specified, an existing Port Channel is expected for update. "
1654+
"If you want to create a new Port Channel, please remove the "
1655+
"port_channel_number parameter from your playbook configuration "
1656+
"and try again."
16531657
)
16541658
self.fail_and_exit(self.msg)
16551659

0 commit comments

Comments
 (0)