Fix for NameError (#39665)
Issue : NameError: global name ‘cnos_devicerules’ is not defined. while running cnos modules. Device Rule file validates the range and type of data going into each CLI based on device type it is executed against. This has to be backported to 2.5
This commit is contained in:
parent
2b2bfc8032
commit
3c32b483bc
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ import time
|
|||
import socket
|
||||
import re
|
||||
try:
|
||||
import cnos_errorcodes
|
||||
import cnos_devicerules
|
||||
from ansible.module_utils.network.cnos import cnos_errorcodes
|
||||
from ansible.module_utils.network.cnos import cnos_devicerules
|
||||
HAS_LIB = True
|
||||
except:
|
||||
HAS_LIB = False
|
||||
|
|
Loading…
Reference in a new issue