More style fixes
parent
9a504fda66
commit
ea1e408b50
stix2/sources
|
@ -263,8 +263,8 @@ class CompositeDataSource(object):
|
|||
break
|
||||
|
||||
if allowed:
|
||||
#no need for further checks if filter is missing parameters
|
||||
|
||||
# no need for further checks if filter is missing parameters
|
||||
|
||||
# check filter field is a supported STIX 2.0 common field
|
||||
if filter_['field'] not in STIX_COMMON_FIELDS:
|
||||
allowed = False
|
||||
|
@ -506,7 +506,7 @@ class DataSource(object):
|
|||
break
|
||||
|
||||
if allowed:
|
||||
#no reason for further checks if missing filter parameters
|
||||
# no reason for further checks if missing filter parameters
|
||||
|
||||
# check filter field is a supported STIX 2.0 common field
|
||||
if filter_['field'] not in STIX_COMMON_FIELDS:
|
||||
|
|
|
@ -21,7 +21,7 @@ class TAXIIDataSource(DataSource):
|
|||
if not api_root:
|
||||
api_root = "http://localhost:5000"
|
||||
if not auth:
|
||||
auth = {"user":"admin", "pass":"taxii"}
|
||||
auth = {"user": "admin", "pass": "taxii"}
|
||||
|
||||
self.taxii_info = {
|
||||
"api_root": {
|
||||
|
@ -117,7 +117,7 @@ class TAXIIDataSource(DataSource):
|
|||
Source (if this data source is attached to one)
|
||||
|
||||
Returns:
|
||||
The query results with filters applied.
|
||||
The query results with filters applied.
|
||||
"""
|
||||
|
||||
# make query in TAXII query format since 'id' is TAXII field
|
||||
|
|
Loading…
Reference in New Issue