From 393172a29e91bf1236e546b4a99f445dbbe849ef Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 30 May 2019 12:50:22 -0700 Subject: fix syntax bugs (container elastic worker) --- python/fatcat_tools/workers/elasticsearch.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'python/fatcat_tools/workers') diff --git a/python/fatcat_tools/workers/elasticsearch.py b/python/fatcat_tools/workers/elasticsearch.py index 6e336e52..fc96e3d4 100644 --- a/python/fatcat_tools/workers/elasticsearch.py +++ b/python/fatcat_tools/workers/elasticsearch.py @@ -4,7 +4,7 @@ import time import requests from pykafka.common import OffsetType -from fatcat_client import ReleaseEntity, ApiClient +from fatcat_client import ReleaseEntity, ContainerEntity, ApiClient from fatcat_tools import * from .worker_common import FatcatWorker @@ -62,10 +62,10 @@ class ElasticsearchContainerWorker(ElasticsearchReleaseWorker): elasticsearch_backend="http://localhost:9200", elasticsearch_index="fatcat"): super().__init__(kafka_hosts=kafka_hosts, consume_topic=consume_topic, - poll_interval, - offset, - elasticsearch_backend, - elasticsearch_index) + poll_interval=poll_interval, + offset=offset, + elasticsearch_backend=elasticsearch_backend, + elasticsearch_index=elasticsearch_index) self.entity_type = ContainerEntity self.elasticsearch_document_name = "container" self.transform_func = container_to_elasticsearch -- cgit v1.2.3