mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user