mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 21:01:13 +00:00
Bug Fix at cnos.py (#34607)
* Bug Fix at cnos.py * Removed extra blank space
This commit is contained in:
committed by
John R Barker
parent
d5a8974ef3
commit
436ca0a0a1
@@ -71,6 +71,8 @@ def interfaceConfig(
|
||||
deviceType, "portchannel_interface_string", interfaceArg2)
|
||||
if(value == "ok"):
|
||||
newPrompt = "(config-if-range)#"
|
||||
if '/' in interfaceArg2:
|
||||
newPrompt = "(config-if)#"
|
||||
retVal = retVal + \
|
||||
waitForDeviceResponse(command, newPrompt, timeout, obj)
|
||||
else:
|
||||
@@ -106,6 +108,8 @@ def interfaceConfig(
|
||||
command = command + \
|
||||
interfaceArg1 + " " + interfaceArg2 + "\n"
|
||||
newPrompt = "(config-if-range)#"
|
||||
if '/' in interfaceArg2:
|
||||
newPrompt = "(config-if)#"
|
||||
retVal = retVal + \
|
||||
waitForDeviceResponse(command, newPrompt, timeout, obj)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user