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