Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c32b48

Browse files
Anil Kumar Muraleedharangundalow
authored andcommitted
Fix for NameError (ansible#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
1 parent 2b2bfc8 commit 3c32b48

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/ansible/module_utils/network/cnos

lib/ansible/module_utils/network/cnos/cnos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
import socket
3636
import re
3737
try:
38-
import cnos_errorcodes
39-
import cnos_devicerules
38+
from ansible.module_utils.network.cnos import cnos_errorcodes
39+
from ansible.module_utils.network.cnos import cnos_devicerules
4040
HAS_LIB = True
4141
except:
4242
HAS_LIB = False

0 commit comments

Comments
 (0)