mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
replace type() with isinstance() (#3404)
Replace use of type() with isinstance() Addresses https://github.com/ansible/ansible/issues/18310
This commit is contained in:
parent
81286b8912
commit
6cfb44b4bb
7 changed files with 22 additions and 22 deletions
|
@ -149,7 +149,7 @@ def set_master_mode(client):
|
|||
|
||||
def flush(client, db=None):
|
||||
try:
|
||||
if type(db) != int:
|
||||
if not isinstance(db, int):
|
||||
return client.flushall()
|
||||
else:
|
||||
# The passed client has been connected to the database already
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue