Can not to delete snapshots

Hello, I need to delete snapshots but delete_snapshots action does not work.
This is my action_file

actions:
  1:
    action: delete_snapshots
    description: "Delete selected snapshots from 'backup'"
    options:
      repository: backup
      retry_interval: 120
      retry_count: 3
      ignore_empty_list: True
      timeout_override: 3600
      continue_if_exception: True
    filters:
      - filtertype: pattern
        kind: regex
        value: '^logs-.*$'
      - filtertype: age
        source: name
        timestring: '%Y.%m.%d'
        direction: older
        unit: days
        unit_count: 1
  2:
    action: delete_indices
    description: "Delete indices older than 2 days"
    options:
      ignore_empty_list: True
      timeout_override:
      continue_if_exception: True
      disable_action: True
    filters:
      - filtertype: pattern
        kind: regex
        value: '^(logs-).*$'
      - filtertype: age
        source: name
        timestring: '%Y.%m.%d'
        direction: older
        unit: days
        unit_count: 2

error is

Failed to complete action: delete_snapshots.  <class 'TypeError'>: get() missing 1 required positional argument: 'task_id' 

/usr/local/lib/python3.6/site-packages/curator/utils.py:53: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.

This looks to me like a duplicate of


maybe see if the suggestions in there help you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.