mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
A single isinstance()
check for all types is enough
This commit is contained in:
parent
503645a72e
commit
51f6a3968c
@ -208,10 +208,8 @@ def cql_query(query, contact_points=None, port=None, cql_user=None, cql_pass=Non
|
||||
if not isinstance(value, six.text_type):
|
||||
# Must support Cassandra collection types.
|
||||
# Namely, Cassandras set, list, and map collections.
|
||||
if not isinstance(value, set):
|
||||
if not isinstance(value, list):
|
||||
if not isinstance(value, dict):
|
||||
value = str(value)
|
||||
if not isinstance(value, (set, list, dict)):
|
||||
value = str(value)
|
||||
values[key] = value
|
||||
ret.append(values)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user