Skip to content

Commit

Permalink
Updated logreader to use different seperators and incremented version
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmith013 committed May 1, 2019
1 parent 72169bb commit 50b8b01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ceda_elasticsearch_tools/core/log_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SpotMapping(object):
# Remove logging message when running script
logging.getLogger("requests").setLevel(logging.WARNING)

def __init__(self, test=False, spot_file=None):
def __init__(self, test=False, spot_file=None, sep='='):

if test:
self.spot2pathmapping['spot-1400-accacia'] = "/badc/accacia"
Expand All @@ -32,7 +32,7 @@ def __init__(self, test=False, spot_file=None):
with open(spot_file) as reader:
spot_mapping = reader.readlines()

self._build_mapping(spot_mapping, sep='=')
self._build_mapping(spot_mapping, sep=sep)

else:
response = requests.get(self.url)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html

version='0.4.1',
version='0.4.2',

description='Extension of the basic elasticsearch python wrapper to perform operations with a given ES index.',
long_description=long_description,
Expand All @@ -45,7 +45,7 @@
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Beta',
'Development Status :: 5 - Production',

# Indicate who your project is intended for
'Intended Audience :: Developers',
Expand Down

0 comments on commit 50b8b01

Please sign in to comment.