Skip to content

Commit

Permalink
Fixed an incorrect format specifier being used in a log when the salt…
Browse files Browse the repository at this point in the history
….returners.etcd_return module is purging events.
  • Loading branch information
arizvisa committed Mar 8, 2019
1 parent b633b0e commit 4fcbea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/returners/etcd_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def _purge_events():
# even matter because we can't do anything without a tag. So similar to
# before, we just remove it and cycle to the next event.
except etcd.EtcdKeyNotFound as E:
log.warning('sdstack_etcd returner <_purge_events> event {event:d} at {path:p} is corrupt (missing tag) and will be removed'.format(event=event, path=ev.key))
log.warning('sdstack_etcd returner <_purge_events> event {event:d} at {path:s} is corrupt (missing tag) and will be removed'.format(event=event, path=ev.key))

log.debug('sdstack_etcd returner <_purge_events> removing corrupt event {event:d} at {path:s}'.format(event=event, path=ev.key))
client.delete(ev.key, recursive=True)
Expand Down

0 comments on commit 4fcbea8

Please sign in to comment.