More style fixes
parent
9a504fda66
commit
ea1e408b50
|
@ -263,7 +263,7 @@ 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:
|
||||||
|
@ -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": {
|
||||||
|
|
Loading…
Reference in New Issue