Fix for NameError (#39665) (#39916)

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
(cherry picked from commit 3c32b483bc)
pull/39925/head
John R Barker 8 years ago committed by GitHub
parent 1096fe568d
commit a84312d9e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,8 +35,8 @@ import time
import socket import socket
import re import re
try: try:
import cnos_errorcodes from ansible.module_utils.network.cnos import cnos_errorcodes
import cnos_devicerules from ansible.module_utils.network.cnos import cnos_devicerules
HAS_LIB = True HAS_LIB = True
except: except:
HAS_LIB = False HAS_LIB = False

Loading…
Cancel
Save