Skip to content

Commit

Permalink
Fix sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashwini Mhatre committed Nov 10, 2023
1 parent 6481ac6 commit ea27ed6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The Ansible ``ansible.utils`` collection includes a variety of plugins that aid
<!--start requires_ansible-->
## Ansible version compatibility

This collection has been tested against following Ansible versions: **>=2.14.0**.
This collection has been tested against following Ansible versions: **>=2.9.10**.

For collections that support Ansible 2.9, please ensure you update your `network_os` to use the
fully qualified collection name (for example, `cisco.ios.ios`).
Expand Down
2 changes: 1 addition & 1 deletion plugins/filter/next_nth_usable.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def next_nth_usable(value, offset):
except Exception:
return False

if type(offset) is not int:
if isinstance(offset) is not int:
raise AnsibleFilterError("Must pass in an integer")
if v.size > 1:
first_usable, last_usable = _first_last(v)
Expand Down
2 changes: 1 addition & 1 deletion plugins/filter/previous_nth_usable.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def previous_nth_usable(value, offset):
except Exception:
return False

if type(offset) is not int:
if isinstance(offset) is not int:
raise AnsibleFilterError("Must pass in an integer")
if v.size > 1:
first_usable, last_usable = _first_last(v)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/mock/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
class DictDataLoader(DataLoader):
def __init__(self, file_mapping=None):
file_mapping = {} if file_mapping is None else file_mapping
assert type(file_mapping) is dict
assert isinstance(file_mapping) is dict

super(DictDataLoader, self).__init__()

Expand Down

0 comments on commit ea27ed6

Please sign in to comment.