Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsafe item removal from list #12

Open
giampaolo opened this issue Feb 16, 2018 · 0 comments · May be fixed by #11
Open

Unsafe item removal from list #12

giampaolo opened this issue Feb 16, 2018 · 0 comments · May be fixed by #11

Comments

@giampaolo
Copy link
Contributor

[reloadconf ERROR] Error polling
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/reloadconf/__main__.py", line 180, in main
    rc.poll()
  File "/usr/local/lib/python3.5/dist-packages/reloadconf/__init__.py", line 318, in poll
    config = self.get_config()
  File "/usr/local/lib/python3.5/dist-packages/reloadconf/__init__.py", line 300, in get_config
    filenames.remove(fn)
ValueError: list.remove(x): x not in list

I can reproduce it with:

reloadconf \
    --debug \
    --wait-for-path="/var/log/mail.log" \
    --wait-for-sock="localhost:25" \
    --config="/etc/postfix/master.cf" \
    --config="/etc/postfix/main.cf" \
    --watch="/conf/" \
    --test="postfix check" \
    --command="tail -F /var/log/mail*.log" \
    --reload="postfix reload"
giampaolo added a commit that referenced this issue Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant