Skip to content

Commit

Permalink
Merge pull request #853 from alexef/patch-1
Browse files Browse the repository at this point in the history
Make filter_list optional
  • Loading branch information
untergeek committed Dec 22, 2016
2 parents 5e946f4 + 78405bc commit 829adc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions curator/singletons.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ def replicas_singleton(
help='Do not raise exception if there are no actionable indices'
)
@click.option(
'--filter_list', callback=validate_filter_json,
help='JSON string representing an array of filters.', required=True
'--filter_list', callback=validate_filter_json, default='{"filtertype":"none"}',
help='JSON string representing an array of filters.'
)
@click.pass_context
def snapshot_singleton(
Expand Down Expand Up @@ -518,8 +518,8 @@ def snapshot_singleton(
help='Do not raise exception if there are no actionable indices'
)
@click.option(
'--filter_list', callback=validate_filter_json,
help='JSON string representing an array of filters.', required=True
'--filter_list', callback=validate_filter_json, default='{"filtertype":"none"}',
help='JSON string representing an array of filters.'
)
@click.pass_context
def show_indices_singleton(
Expand Down Expand Up @@ -598,8 +598,8 @@ def show_indices_singleton(
help='Do not raise exception if there are no actionable snapshots'
)
@click.option(
'--filter_list', callback=validate_filter_json,
help='JSON string representing an array of filters.', required=True
'--filter_list', callback=validate_filter_json, default='{"filtertype":"none"}',
help='JSON string representing an array of filters.'
)
@click.pass_context
def show_snapshots_singleton(
Expand Down
2 changes: 2 additions & 0 deletions docs/Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Changelog
**General**

* Add and increment test versions for Travis CI. #839 (untergeek)
* Make `filter_list` optional in snapshot, show_snapshot and show_indices
singleton actions. #853 (alexef)

**Bug Fixes**

Expand Down

0 comments on commit 829adc3

Please sign in to comment.