mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Fix undefined variables, basestring usage, and some associated python3 issues
This commit is contained in:
parent
9f7b0dfc30
commit
225fa5d092
84 changed files with 652 additions and 963 deletions
|
@ -200,8 +200,9 @@ changed:
|
|||
sample: true
|
||||
'''
|
||||
|
||||
import re
|
||||
import copy
|
||||
import re
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.ce import ce_argument_spec, load_config, get_nc_config, set_nc_config
|
||||
|
||||
|
@ -322,7 +323,7 @@ class NtpAuth(object):
|
|||
self.module.fail_json(
|
||||
msg='Error: key_id is not digit.')
|
||||
|
||||
if (long(self.key_id) < 1) or (long(self.key_id) > 4294967295):
|
||||
if (int(self.key_id) < 1) or (int(self.key_id) > 4294967295):
|
||||
self.module.fail_json(
|
||||
msg='Error: The length of key_id is between 1 and 4294967295.')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue