mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Python 2: accept both long and int for type=int (module options) (#53289)
* Added unit test
This commit is contained in:
@@ -1864,7 +1864,7 @@ class AnsibleModule(object):
|
||||
raise TypeError('%s cannot be converted to a bool' % type(value))
|
||||
|
||||
def _check_type_int(self, value):
|
||||
if isinstance(value, int):
|
||||
if isinstance(value, integer_types):
|
||||
return value
|
||||
|
||||
if isinstance(value, string_types):
|
||||
|
||||
Reference in New Issue
Block a user